[Qt-qml] Prevent RMB on top of WebView

Mark Constable markc at renta.net
Mon Jan 17 06:28:02 CET 2011


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


More information about the Qt-qml mailing list