January 25, 2012

Adrian60 Adrian60
Lab Rat
1 posts

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?

Thx

1 reply

January 25, 2012

RazrFalcon RazrFalcon
Lab Rat
114 posts

You can change QCoreApplication to QApplication and QT += gui

So it starts to be not only cli app.

 Signature 

QT != Qt
Gentoo + KDE

 
  ‹‹ Alternative to a global instance variable      Qt best way to invoke methods of QMainWindow from other widget ››

You must log in to post a reply. Not a member yet? Register here!