D-Bus Ping Pong

Demonstrates a simple message system using D-Bus.

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

You can run the example from:

  • Qt Creator

    Open the Welcome mode and select the example from Examples. For more information, see Qt Creator: Tutorial: Build and run.

  • Qt Extension for Visual Studio Code

    Run the Qt: Open Qt examples command from the Command Palette, and select the example from the list. For more information, see Qt Extension for Visual Studio Code: Tutorial: Build and run.

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

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

Example project @ code.qt.io