Qt提供了几种在 Qt 应用程序中实现 IPC (进程间通信) 的办法。
Qt D-Bus module is a Unix-only library you can use to implement IPC using the D-Bus protocol. It extends Qt's 信号和槽 mechanism to the IPC level, allowing a signal emitted by one process to be connected to a slot in another process. The Qt D-Bus documentation has detailed information on how to use the Qt D-Bus 模块。
In Linux/X11 platforms, Qt provides support for session management. Sessions allow events to be propagated to processes, for example, to notify when a shutdown occurs. The process and applications can then perform any necessary operations such as save open documents.