maston
1st September 2010, 10:50
Hi.
I have QWebView widget add by QtCreator on MainWidget . I have to detect midButtom pressed. And I know that i can do this by subClass QWebView and overrite mousePressEvent void. But i don't want to write other subclasses.
If any solution to overrite mousepressevent without create new subclass? I have ui_mainwidget.h and there is evertyhing about widgets on form. but I can/t modyfy this file because QtCreator show that this file is change from outside. :confused:
Thanks in advance.
maston
I have QWebView widget add by QtCreator on MainWidget . I have to detect midButtom pressed. And I know that i can do this by subClass QWebView and overrite mousePressEvent void. But i don't want to write other subclasses.
If any solution to overrite mousepressevent without create new subclass? I have ui_mainwidget.h and there is evertyhing about widgets on form. but I can/t modyfy this file because QtCreator show that this file is change from outside. :confused:
Thanks in advance.
maston