OS Manuals

/usr/bin/qdbusxml2cpp

Qt5 - QtBase components

From qt5-qtbase 5.15.19-r3 (os), captured 2026-11-05 by running qdbusxml2cpp --help (exit 0). permalink

Usage: /usr/bin/qdbusxml2cpp [options] xml-or-xml-file [interfaces ...]
Produces the C++ code to implement the interfaces defined in the input file.

If the file name given to the options -a and -p does not end in .cpp or .h, the
program will automatically append the suffixes and produce both files.
You can also use a colon (:) to separate the header name from the source file
name, as in '-a filename_p.h:filename.cpp'.

If you pass a dash (-) as the argument to either -p or -a, the output is written
to the standard output.

Options:
  -h, --help                   Displays help on commandline options.
  --help-all                   Displays help including Qt specific options.
  -v, --version                Displays version information.
  -a, --adaptor <filename>     Write the adaptor code to <filename>
  -c, --classname <classname>  Use <classname> as the class name for the
                               generated classes
  -i, --include <filename>     Add #include to the output
  -l <classname>               When generating an adaptor, use <classname> as
                               the parent class
  -m, --moc                    Generate #include "filename.moc" statements in
                               the .cpp files
  -N, --no-namespaces          Don't use namespaces
  -p, --proxy <filename>       Write the proxy code to <filename>
  -V, --verbose                Be verbose.

Arguments:
  xml-or-xml-file              XML file to use.
  interfaces                   List of interfaces to use.
Options (11)
OptionDescriptionSource
-h, --helpDisplays help on commandline options.help
--help-allDisplays help including Qt specific options.help
-v, --versionDisplays version information.help
-a, --adaptor filenameWrite the adaptor code to <filename>help
-c, --classname classnameUse <classname> as the class name for the generated classeshelp
-i, --include filenameAdd #include to the outputhelp
-l classnameWhen generating an adaptor, use <classname> as the parent classhelp
-m, --mocGenerate #include "filename.moc" statements in the .cpp fileshelp
-N, --no-namespacesDon't use namespaceshelp
-p, --proxy filenameWrite the proxy code to <filename>help
-V, --verboseBe verbose.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.