You might want to move the checks outside of the constructor & call them before your exec() (or show() or whatever). If you move the checks to a "bool MainWindow::checkPlugins()" call, you can then check the return value and either bring up the main window or exit the application.

Vycke