Main window is built from source code, instead of QtDesigner