Important: Please read the Qt Code of Conduct -

QDialog out of a console application

  • I have a QCoreApplication console application. When this application runs into an assert, I would like to have a QDialog on my screen with a few radio buttons that give me a choice how to continue from here.
    Of course a console application will not let me create a QWidget, let alone a QDialog.
    Anybody out there who once had the same problem and knows of a smart way to solve it?


  • You can change QCoreApplication to QApplication and QT += gui

    So it starts to be not only cli app.

Log in to reply