Hi guys,
I made an App with GUI. But now I would like to manage the options in the command line.
Examaple, if I execute the MyApp.exe without parameters (or by clicking the icon), then It should launch the Main window, etc.
But If I execute form the command line something like MyApp.exe -version, I would like to get only the version, without launching the App.
I modified the .pro file and added
in order to return the version with a cout sentence in the main.cpp.
But now if I execute the app without any argument, the console is launched at the same time of the main window. So the console keeps behind the main window.
What am I missing? There is another way to do that?
Thanks in advance!
Bookmarks