Important: Please read the Qt Code of Conduct -

Connecting signal/slot with unsupported parameter in QML

  • Hi,

    I have a signal and a slot (Q_INVOKABLE write accessor of a property) with the type 'QList<QPair<QString, QString>>'. I have an object object of both sender and receiver available in QML and tried to connect them like so:


    When the signal is emitted I get this error:
    '<Unknown File>: Error: Unknown method parameter type: QList<QPair<QString,QString> >'
    I do realize that the parameter is not supported by QML but I thought creating the connection in QML would be possible nontheless. Is there something I can do to create the connection?

Log in to reply