CodePudding user response:
The same process in two Windows, can directly use the common class objects and data transmission of information;Different processes of two Windows, use the inter-process communication, Qt5.9 above a new QtRemoteObject module, the module can realize cross-platform inter-process communication,
If Qt5.9 version below, then choose according to different operating systems interprocess communication mode:
Linux recommend choosing Dbus or LocalSockt; Windows recommend choosing WM_COPYDATA message; Other platforms to baidu;
, of course, also can use a semaphore, pipeline execution to specify a set of, is complicated,
CodePudding user response:
Across processes can use the socket communicationWith the process is simple, a global variable
CodePudding user response:
Data transfer between two Windows??????? Is the window in the two processes or a pass between the two Windows in the program?CodePudding user response:
Two program or a program?