Generates a D-Bus interface from a header file.
The command is defined in the
DBus
组件对于
Qt6
package. Load the package with:
find_package(Qt6 REQUIRED COMPONENTS DBus)
This command was introduced in Qt 6.0.
qt_generate_dbus_interface(header
[customName]
[OPTIONS options]
)
若
versionless commands
are disabled, use
qt6_generate_dbus_interface()
instead. It supports the same set of arguments as this command.
剖析的 C++ 源 (或头文件) 包含 QObject -derived class declaration and generates a file containing the D-BUS Introspection XML.
By default, the generated XML file is stored in the current binary directory, and has the same base name as the header. You can specify a different name or path by adding
customName
as an optional second argument.
函数设置调用
qdbuscpp2xml
命令行工具。可以为工具进一步设置自变量后于
选项
.