I have a QT application based on a QApplication and supposing that my application has a complex GUI (QDialog, QMainWindow...).
My Application can run in two modes:
- with GUI
- in headless mode
I would like to know how I can launch the application in headless mode (that is to say without GUI visible)
From a very basic code, below, what argument shall I have to allow this?
int main(int argc, char*argv[])
{
QApplication app(argc, argv);
// which option should I add to argv to run in headless mode
return app.exec();
}