Well, how do you start the program from the command prompt? Normally it is the shell that puts an application in the background rather than the GUI-parts of a Qt app.
Take this for example:
#include <QApplication>
#include <QLabel>
int main( int argc, char **argv )
{
(new QLabel("My advanced GUI application"))->show
();
return app.exec();
}
#include <QApplication>
#include <QLabel>
int main( int argc, char **argv )
{
QApplication app( argc, argv );
(new QLabel("My advanced GUI application"))->show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
If I start that from a command prompt, there won't be a new prompt until I close the window. Does your app put itself in the backgound?
Bookmarks