Details
Description
Trying to create an Interface to BlueZ gives me an error message "Got unknown type `a
{sv}'" and no output file is written.
The compiler says also
You should add <annotation name="com.trolltech.QtDBus.QtTypeName.In1" value="<type>"/> to the XML description
In fact as you can see in the attachement DBUS_BlueZ_Adapter.XML, the proper annotation is provide as an Out paramater... This is normal for a "Signal". But it seems that the compiler expect a In parameter.
The XML file was generated using the qdbuscpp2xml utility from the attached file DBUS_BlueZ_Adapter.h.
If I add the requested line in the XML file, there is no error and the code is properly generated...
I have checked for "Method" with QVariantMap as reply and the cose is properly generated... It seems that problem occurs only for "Signal"...
Attachments
For Gerrit Dashboard: QTBUG-21577 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
124229,2 | Fix qdbusxml2cpp signal generation. | 5.7 | qt/qtbase | Status: ABANDONED | -1 | 0 |
168263,4 | Fix signal code generation | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |
173320,1 | Fix signal code generation | dev | qt/qtbase | Status: ABANDONED | -1 | 0 |