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

Casting signaled QObjects from C++ code returns a different type

    XMLWordPrintable

Details

    Description

      This thread references and identifies the problem with a code exampled attached.

      http://developer.qt.nokia.com/forums/viewthread/1764/

      I have noticed that QML behaves differently when these objects are passed to the script as a signal.

      A singleShot QTimer that passes the object1 twice to the script. Once declared class and the second as a QObject.

      When passed as a class it is casted as a QVariant and I will not have access to any properties or slots.

      When passed as a QObject I will have access to properties but is also casted differently then when it is passed using the doSomething() function. (Clicking anywhere in the window)

      Attachments

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

        Activity

          People

            aakenned Aaron Kennedy
            coderbob Bob the coder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes