transition QApplication constructor with option to not show the dock icon to qt5