Important: Please read the Qt Code of Conduct -

convert xml to cpp with qdbusxml2cpp get error unknow type (uu)

  • I use qbusxml2cpp tool in Qt to convert xml to cpp class. I use the command below to convert a xml file named nm-device.xml (I get this xml file from network manager package v0.9.8.8)

    qdbusxml2cpp -v -c Devices -p Devices.h:Devices.cpp nm-device.xml

    but I get error, here is the output:

    Got unknown type `(uu)' You should add name="org.qtproject.QtDBus.QtTypeName" value="<type>"/> to the XML description

    I've also search on Google and I know (uu) is a struct and I need to add the line below to xml file

    name="org.qtproject.QtDBus.QtTypeName" value="<type>"/>

    The question is What type i should use in my situation?

  • I have more or less the same problem.

Log in to reply