Display a GUI window. The window need not have any contents, but should respond to requests to be closed.

#include <QApplication>
#include <QMainWindow>
 
int main(int argc, char *argv[])
{
 QApplication app(argc, argv);
 QMainWindow window;
 window.show();
 return app.exec();
}