You have a MouseArea on top (onClicked)? If so, then setting acceptedButtons: Qt.LeftButton | Qt.RightButton will make it handle the RMB also.
Martin. > -----Original Message----- > From: [email protected] [mailto:qt-qml- > [email protected]] On Behalf Of ext Mark > Constable > Sent: Monday, 17 January 2011 3:28 PM > To: [email protected] > Subject: [Qt-qml] Prevent RMB on top of WebView > > I have a Rectangle (z:999) on top of a WebView (z:1) inside a > Flickable (z:2) and if I use accepted:true inside the onclick > handler then it prevents LMB and MMB events from falling through > to the WebView item but not RMB events, they still cause the > context menu to pop up and activate JS click events on the > WebView page underneath. > > How can I prevent RMB events falling through to a WebView item? > > Related; how can I modify the WebView context menu options? > > --markc > _______________________________________________ > Qt-qml mailing list > [email protected] > http://lists.qt.nokia.com/mailman/listinfo/qt-qml _______________________________________________ Qt-qml mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-qml
