Thank you for your suggestion. I implemented it and below is the code. But I was not able to get it to disable the right click on flash videos. And also I ran it through the debugger with a break point in the eventFilter method. And it looks like this eventFilter is never being called.
It looks like as if the events in QT are broadcasted to all the QObjects in the application. Also please do let me know if you know of any good literature that explains qt event mechanism in detail. Thank you.
: QWebView(parent), m_page(this), m_pXMLHttp(NULL)
m_pFrame = page()->mainFrame();
if ( (
>type() == QEvent::MouseButtonPress )
>type() == QEvent::MouseButtonRelease)
>type() == QEvent::MouseButtonDblClick ) )
if (mouseEvent->button() == Qt::RightButton)
//return QWebView::eventFilter(obj, event);
To copy to clipboard, switch view to plain text mode