Home > Mobile >  QT!
QT!

Time:10-03

O bosses give a complete can transfer data between the two Windows code sample, have urgent need!!! Version for QT5.9

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 communication
With 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?
  •  Tags:  
  • Qt
  • Related