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

Handling PySide signal arguments in QML



  • hi, let's suppose that in an exported pysyde class i have this
    @class test(QObject):
    ...
    speak=Signal(str)
    ...
    self.speak.emit("hello")@
    and i have registered the class with qmlRegisterType(...)
    now in qml i can use the signal in this way:

    @onSpeak: { //use the string }@
    but what is the string variable?


Log in to reply