Hello,

I have a strange problem. I must disable and catch the right mouse button press when the mouse moves over a swf which is embedded in a QWebView.
Under MacOSX it works fine under Windows all events are triggered EXCEPT of the QEvent::MouseButtonPress.

The code looks like this:

bool MainWindow::eventFilter(QObject *obj, QEvent *event)
{
if (event->type() != QEvent::MouseButtonPress) return false;
QMouseEvent *mouseEvent = static_cast<QMouseEvent*>(event);
if (mouseEvent->button() != Qt::RightButton) return false;
else return true;
}

....
ui->webView->installEventFilter(this);

The effect is that under MacOS X if I press the right mouse button the SWF does not pop up the right menu.
Under WINDOWS it seems that the SWF is "stronger" even embedded in the QWebView. The mousebutton presses are all catched in the embedded SWF.

I do not want that. How can I avoid that the SWF is stealing, even embedded, my mouse button presses.

Or does anyone else know some alternative on how to get rid of the anoying swf menu in WebKit.

Thank you,
Martin