[Qt-interest] Middle click event for QWebView?

Peter pgeorges at gmail.com
Thu Oct 29 06:17:50 CET 2009


I need to detect when the user has clicked on a link in a QWebView with a
middle mouse button. The only click signal I can see is the following:
- void *linkClicked <http://doc.trolltech.com/4.5/qwebview.html#linkClicked>
* ( const QUrl & *url* )

Now, by the time I check QApplication::mouseButtons() it is too late and it
just returns Qt::NoButton. What is the correct way of receiving a middle
mouse linkClicked event?

Cheers,
Peter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091029/21078de4/attachment.html 


More information about the Qt-interest-old mailing list