[Qt-qml] Prevent RMB on top of WebView
martin.jones at nokia.com
martin.jones at nokia.com
Mon Jan 17 06:59:47 CET 2011
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: qt-qml-bounces+martin.jones=nokia.com at qt.nokia.com [mailto:qt-qml-
> bounces+martin.jones=nokia.com at qt.nokia.com] On Behalf Of ext Mark
> Constable
> Sent: Monday, 17 January 2011 3:28 PM
> To: qt-qml at qt.nokia.com
> 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
> Qt-qml at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
More information about the Qt-qml
mailing list