Home > Mobile > Qt window procedure for the first time, double-click the hidden operation interface, the second doub
Qt window procedure for the first time, double-click the hidden operation interface, the second doub
Time:10-04
Qt window procedure for the first time, double-click the hidden operation interface, the second double-click the display interface, and only run one instance how to implement?????
CodePudding user response:
First double-click hidden is very simple, add hide in Qt double-click events () to go, Double-click on the display, want to ask next double-click?
Interface under the condition of no longer exists, if it is Windows with WindowsAPI get double click then process
CodePudding user response:
In fact, the program can only run a process technology, such as through the mutex (or other), started testing mutexes doesn't exist, create a mutex, and hide yourself, start the program again, mutexes, existing message before closing a process, is about the principle,
CodePudding user response:
Problem description is not very clear, is wants to be a single process or what do you mean?
CodePudding user response:
As said the second floor, creating a named semaphore, if not to run the program is running, and hide, if have the program runs, give it let it show, and then his exit
CodePudding user response:
Program can only run a process technology, using it the mutex