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:
|
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel