You are not logged in.
Hi all,
I'm writing an MPRIS2 module for one of my projects using PyQt and qtdbus.
Everything were working fine so far, but I suddenly came across a little strange problem with GetTracksMetadata method. The docs tell me that it's result type is "aa{sv}" which translates to Qt's "QList<QVariantMap>".
So I coded it as usual:
class MPRIS2Tracklist(QtDBus.QDBusAbstractAdaptor):
@pyqtSlot("QStringList", result="QList<QVariantMap>")
def GetTracksMetadata(self, as):
pass # irrevelant
Yet not luck this time, because trying to run it I got this message:
C++ type 'QList<QVariantMap>' is not supported as a pyqtSlot result type
Strange .
I then tried to define it as "general" slot or even no slot at all and then define Introspection manually (using Q_CLASSINFO), but still nothing.
Anyone knows of a way around it or is it just undoable?
Offline