How to pass array/list in signal and emit the signal?



  • HI ,
    How to pass an Array/list as argument to the signal and emit it



  • What's that supposed to mean? How to define a signal with a list/array as argument?



  • Hi,
    sorry for that.

                 How to define a signal with a list/array as argument?  and emit it
    


  • It's not different from any other signal declaration. What did you try? What didn't work?



  • If the signal/slot connection is asynchrouns you additionally must use the qRegisterVariant type stuff...



  • Hi,
    Here is the info: PySide:

    created a signal :
    signalTextChanged=QtCore.Signal(list,str)

    emitting the signal :
    self.emit(QtCore.SIGNAL('signalTextChanged(list,str)'),names,prefix)

    Error:
    TypeError: Unknown type used to emit a signal: list


Log in to reply
 

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