Qt 6.11 is out! See what's new in the release
blog
Check qws server
Mobile and Embedded
3
Posts
3
Posters
4.6k
Views
1
Watching
-
My embedded application need to know if there is a running qws server .
My application can be started one or two times at the same time.
The application must be started for the first time with -qws parameter while the second time without -qws:
@
./app -qws &
(first application started)
./app &
(second application started)
@I'd like to always start application without -qws, check in the main() if -qws is required and then restart application with right parameter.
For example:
@
int main(int argc, char *argv[])
{
...
...
if(qwsRequired())
{
QProcess::startDetached(QApplication::applicationFilePath(), parameter_list);
exit(12);
}
...
}
@
I need qwsRequired() .