[webkit-qt] Fwd: Custom Context Menu Events
mitchell.verter at gmail.com
Thu Feb 28 17:14:23 PST 2013
I am fairly new to QT and the QT-Webkit, so I was hoping someone could
guide me through this:
I'm trying to think through the problem with the context menus.
The issue is that it gives several different menus, depending on the
A. Page Contex
.. i. Forward
.. ii. Reload
.. iii. Back
B. Image Context
.. i. Copy Image
.. ii. Save Image
.. iii. Copy Image Link (?)
The issue is that we want to limit Image context (B) to do only (B.ii)
I am guessing that we would need to do something with:
Filters the context menu event, *event*, through handlers for scrollbars
and custom event handlers in the web page. Returns true if the event was
handled; otherwise false.
A web page may swallow a context menu event through a custom event handler,
used by Google Maps <http://maps.google.com/>, for example.
Look up this member
the source code.
How would we retrict it to context (B)?
Someone told me this previously:
[14:52] so how do i constrain this to only affect the image context menu
[14:54] QWebPage::hitTestContent(const QPoint &Â pos) and
Thanks for the help!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-qt