qt_add_dbus_interface(<VAR> dbus_spec basename) # added in Qt 5.15 qt5_add_dbus_interface(<VAR> dbus_spec basename)
Generates C++ sources implementing an interface for a D-Bus interface description file defined in
dbus_spec. The generated files are named after
basename.moc. The paths of the files are added to
The function sets up a call to the Qt D-Bus XML compiler (qdbusxml2cpp) in interface (proxy) mode. By default,
qdbusxml2cpp generates a C++ class named after the interface name, with a namespaced alias:
|D-Bus Interface Name
Options can be set using
set_source_file_property on the
|Override the default interface class name with
|Do not generate the namespaced name if set to
#include "path" in the generated code.
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.