D-Bus Ping Pong Example | Qt D-Bus

Qt 5.6 | Qt D-Bus | D-Bus Ping Pong Example

Qt 5.6.2 Reference Documentation

# D-Bus Ping Pong Example

Ping Pong is a command-line example that demonstrates the basics of Qt D-Bus. A message is sent to another application and there is a confirmation of the message.

## Running the Example

To run the example from Qt Creator, open the Welcome mode and select the example from Examples. For more information, visit Building and Running an Example.

Run the `pong` application and run the `ping` application with the message as the argument.

      $ ./pong &
      $ ./ping Hello
      Reply was: ping("Hello") got called

Files:

- pingpong/ping-common.h
- pingpong/ping.cpp
- pingpong/pong.cpp
- pingpong/pong.h
- pingpong/ping.pro
- pingpong/pingpong.pro
- pingpong/pong.pro