On Mon, Mar 19, 2012 at 8:15 AM, Rick Stockton < rickstock...@reno-computerhelp.com> wrote:
> I'll top post this one: > > OOPS! And PLEASE ignore my post, in Vol 45/Issue 46, where I talked about > this being requiring "just an easy change": This requires no changes at > all. It's already supported, and it even works back in 4.7.4. (Maybe > earlier, but 4.7.4 is the earliest Release I have "lying around" for test > purposes.) > > You only need to ignore the Doco Comment about acceptedButtons taking only > 3 values ;) Y can give it all 5, like this: > > acceptedButtons: Qt.LeftButton | Qt.RightButton > | Qt.MiddleButton | Qt.XButton1 > | Qt.XButton2 > > and your MouseArea will start getting Press and Release events (plus > DoubleClick, plus Press and Hold) for 'BackButton' and 'ForwardButton'. > Here's my Test/Demo/Example program for you to try, and use as a model > (just run it using "qmlviewer"): http://pastebin.kde.org/442676/ I set > the expiration on that Paste at 30 days. It will be an official example, > but with 27 buttons, in Qt5. > > On 03/18/2012 05:27 AM, Mark wrote: > > On Sun, Mar 18, 2012 at 1:56 AM, Xavier Sythe <m...@sythe.me> wrote: > >> As far as I can recall, it was decided that the "back button" would be >> implemented in the new Kickoff as support for the mouse's "back button", as >> well as support for the "backspace" key, in conjunction with the other >> keyboard navigation. (arrow keys) >> >> I would appreciate Martin and Aaron's confirmation that this is the >> finalized concept that will be implemented for 4.9. >> >> Cheers, >> Xavier >> > > > I can confirm (or actually deny) that partly. > They did indeed want to do that, however it was then figured out that QML > didn't get all the mouse events required for that. That should be fixed in > Qt5 but not in Qt4. So i'm afraid the mouse back/forward button support > isn't going to be in anytime soon. > > > Why isn't that documented on the Qt site http://qt-project.org/doc/qt-4.8/qml-mousearea.html#acceptedButtons-prop? That really sucks! Nice to know that it's possible :)
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel