QtCreator's QtSingleApplication not so single?!
-
I've been digging QtCreator's source code for quite some time to see how some things work, how they are implemented and to get some inspiration :)
So far, so good.
QtC'sapp
instance is aQtSingleApplication
, which, AFAIK, should prevent the user from starting multiple instances of the program at the same time?! Right?!But I'm able to create a bazillion instances of QtCreator...
Am I misinterpreting something or is this not working as expected?
As long as I can remember, it was possible to start QtCreator multiple times?! -
Start Qt Creator with the
-client
command line argument to open the first instance of Qt Creator. -
Just because you inherit from this class doesn't mean you can't start more than once.
-
Start Qt Creator with the
-client
command line argument to open the first instance of Qt Creator.Now it behaves like expected :)
@Christian-Ehrlicher I'm not after to reproduce this behavior in my app, I just stumbled upon this part in the code of QtC and thought about it. Because you can usually open multiple instances of QtCreator at the same time.
So you need extra arguments to activate the single App behavior... I did not know that :) -
P Pl45m4 has marked this topic as solved on