Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. How to pass array/list in signal and emit the signal?

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

Scheduled Pinned Locked Moved Language Bindings
6 Posts 3 Posters 8.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    ManasQt
    wrote on last edited by
    #1

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

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

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

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • M Offline
        M Offline
        ManasQt
        wrote on last edited by
        #3

        Hi,
        sorry for that.

                     How to define a signal with a list/array as argument?  and emit it
        
        1 Reply Last reply
        0
        • D Offline
          D Offline
          dangelog
          wrote on last edited by
          #4

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

          Software Engineer
          KDAB (UK) Ltd., a KDAB Group company

          1 Reply Last reply
          0
          • G Offline
            G Offline
            giesbert
            wrote on last edited by
            #5

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

            Nokia Certified Qt Specialist.
            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

            1 Reply Last reply
            0
            • M Offline
              M Offline
              ManasQt
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved