mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-03 15:55:27 +08:00
qt 6.5.1 original
This commit is contained in:
BIN
examples/dbus/doc/images/dbus-chat-example.webp
Normal file
BIN
examples/dbus/doc/images/dbus-chat-example.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
17
examples/dbus/doc/src/chat.qdoc
Normal file
17
examples/dbus/doc/src/chat.qdoc
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
|
||||
|
||||
/*!
|
||||
\example chat
|
||||
\title D-Bus Chat
|
||||
\ingroup examples-dbus
|
||||
\brief Demonstrates communication among instances of an application.
|
||||
|
||||
\e Chat is a \l{Qt D-Bus} example which demonstrates a simple chat system
|
||||
among instances of an application. Users connect and send message to
|
||||
each other.
|
||||
|
||||
\image dbus-chat-example.webp
|
||||
|
||||
\include examples-run.qdocinc
|
||||
*/
|
27
examples/dbus/doc/src/complexpingpong.qdoc
Normal file
27
examples/dbus/doc/src/complexpingpong.qdoc
Normal file
@ -0,0 +1,27 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
|
||||
|
||||
/*!
|
||||
\example complexpingpong
|
||||
\title D-Bus Complex Ping Pong
|
||||
\ingroup examples-dbus
|
||||
\brief Demonstrates usage of the Qt D-Bus typesystem.
|
||||
|
||||
\e{Complex Ping Pong} example demonstrates the use of \l{Qt D-Bus}
|
||||
typesystem with QDBusVariant and QDBusReply. The example consists of the
|
||||
main application \c complexping which starts the other application, \c
|
||||
complexpong. Entering keywords such as \c hello and \c ping is handled by
|
||||
complexpong and the reply is printed to the standard output.
|
||||
|
||||
\include examples-run.qdocinc
|
||||
|
||||
To run, execute the \c complexping application.
|
||||
|
||||
\badcode
|
||||
$ ./complexping
|
||||
Ask your question: When is the next Qt release?
|
||||
Reply was: Sorry, I don't know the answer
|
||||
Ask your question: What is the answer to life, the universe and everything?
|
||||
Reply was: 42
|
||||
\endcode
|
||||
*/
|
24
examples/dbus/doc/src/pingpong.qdoc
Normal file
24
examples/dbus/doc/src/pingpong.qdoc
Normal file
@ -0,0 +1,24 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
|
||||
|
||||
/*!
|
||||
\example pingpong
|
||||
\title D-Bus Ping Pong
|
||||
\ingroup examples-dbus
|
||||
\brief Demonstrates a simple message system using D-Bus.
|
||||
|
||||
\e{Ping Pong} is a command-line example that demonstrates the basics of
|
||||
\l{Qt D-Bus}. A message is sent to another application and there is a
|
||||
confirmation of the message.
|
||||
|
||||
\include examples-run.qdocinc
|
||||
|
||||
Run the \c pong application and run the \c ping application with the message
|
||||
as the argument.
|
||||
|
||||
\badcode
|
||||
$ ./pong &
|
||||
$ ./ping Hello
|
||||
Reply was: ping("Hello") got called
|
||||
\endcode
|
||||
*/
|
Reference in New Issue
Block a user