Hmm... when some method is virtual it usually means it is meant to be reimplemented...
Only events that are meant for this particular widget will be forwarded to it. Of course unless the widget is alien, then it won't get any native events.And QWidget::x11Event() would have all the event type.
I will not answer this question but instead send you back to the docs to compare QApplication and QWidget classes and think whether one can substitute the other as a super class of QMainWindow.BTW, should I inherit QApplication for my QMainWindow?(currently, it inherits from QWidget).
Bookmarks