Extending QMainWindow.