initialise Qt application
enable signals and slots
enable QFlags template
autoconvert Qt::WindowFlags