Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-5060

Signal parameters of type QVariant are not passed to connected script function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 4.5.3
    • Qt Script
    • None
    • a539ce478800c3dacf8456d206e8fd6dc700ac5c

    Description

      Signal parameters of type QVariant are not passed to connected script function

      1. Create a QObject subclass with a signal having a parameter of type QVariant
      2. Create an object of the class and register it to QScriptEngine via newQObject
      3. In a script declare a function and connect it to the signal
      4. When the function is invoked via the signal the parameter is undefined

      It workes in Qt 4.4.
      It DOESN'T work in Qt 4.5

      Attached is a sample program to demonstrate the problem. Please compile it with Qt 4.4 and 4.5 respectively and see the difference in output.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kenthans Kent Hansen (Inactive)
            miha.d.puc Miha D. Puc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes