QWebView Mouse click on scroll bar
I have created a "MyWebView" class by inheriting from QWebView. I have also re-implemented the "mouseDoubleClikEvent()" of QWebView in which enlarged webview widget will be opened[working fine].
By default MyWebView will load the page "google.com" and if user double click on the web view it loads "wikipedia.com". This is working as expected.
If I double click on any of the scroll bar or double click on the arrows associated with these scroll bars then I can see that the "mouseDoubleClikEvent" is getting executed.
Is there anyway I can prevent this calling on "mouseDoubleClikEvent" when user clicks on ScrollBars? I want the "mouseDoubleClikEvent" should get called only if user double clicks inside the webview.
class MyWebView : public QWebView
MyWebView(QWebView *parent = 0);
void mouseDoubleClickEvent(QMouseEvent *event);
#endif // MYWEBVIEW_H
void MyWebView::mouseDoubleClickEvent(QMouseEvent *event)