Any QWidget can be shown as a window. QMainWindow is not mandatory at all. It just provides support for such things as menubar, toolbars, dock widgets etc. The problem must lie somewhere in your code, so could you show us the relevant parts?