QT realizes shared memory for inter-process communication

One: Project introduction:
Two: Project technology:
Three: Project display:
Four: Project source code portal:
One: Project introduction:
Demonstrate the use of shared memory with QSharedMemory class for inter-process communication.
The shared memory example shows how to use the QSharedMemory class to use shared memory for inter-process communication. To build the example, run make. To run the example, start two instances of the executable file. The main() function creates an application and an instance of our sample Dialog class. The dialog box is displayed and the control is passed to the application in a standard way.
Two: project technology:
qt5.12, multi-threaded
three: project display:
1. Normal display, as shown in the figure below.
Insert picture description here
2. Click "Load Image From Fole" to load the following figure.
Insert picture description here
3. After loading the image in 2, the following figure will be displayed
Insert picture description here
4. Click "Display Image Shared Memory", as shown below
Insert picture description here

Four: Project source code portal:
Click to get the complete project download address

Guess you like

Origin blog.csdn.net/it_xiangqiang/article/details/112982537