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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.