How to detect the mousebuttonpress event in the page view of the tabwidget?
-
Hi folks,
I am going to implement a feature to detect which tab widget is currently focused by the user.
I notice that the event is only sent to the event filter when the user clicks the tab bar. However, I would expect the event signal to be emitted when the user clicks the page area of the tabwidget.I am using C++. I would like to know if I can override the event from the subclass of the tabwidget. Or a better solution for this feature?
I understand that from the document, there is no mousebuttonpress event in the tabwidget.
-
It would help to have some code to refer to.
QApplication::focusChanged() might be a solution.