Hi all
How to disable right click on web page which is displayed through QWebEngineView in qt?
Hi all
How to disable right click on web page which is displayed through QWebEngineView in qt?
You could try with an event filter, see QObject::eventFilter().
Cheers,
_
Hi
Thanks for your answer..
Sorry iam a neewbie, could you explain me little bit more eloborate... so that it will be useful to me..
Thanks.
An event filter allows you to see all events going to another object and deciding whether you want the event to reach the recipient or not.
You need a (direct or indirect) subclass of QObject, implement the eventFilter() method, make it return true for the right mouse button events and install that object on the web engine view as its event filter.
Cheers,
_
Bookmarks