Pretty new to Qt, but after a glance at the docs, QMainWindow does not derive from QApplication, this function is virtual on QApplication and so you would override this function in a subclass of QApplication. Looks like 5 minutes of playing around to see if that works, no ?
Bookmarks