Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Returning a QList of a custom type in a QDBus method



  • I'm able to return a single instance of a custom type in a QDBus method call, but using QList <Type> as the return value doesn't show the method on the interface. Does anyone know what could be wrong?



  • I just had to register the type with qDBusRegisterMetaType<QList<Type>>();


Log in to reply