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

Unable to assign to user defined Object properties using id of existing object

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • 4.7.0
    • 4.7.0
    • None
    • Tested under both Windows 7 and Windows XP in QT Creator 1.3.81 built on Mar 09 2010 at 19:27:18

    Description

      Creating an object (in its own .qml file) whose purpose is to be used as a grouped property elsewhere (Obj1.qml in attached code) , create a second object which uses the grouped property "property Obj1 myObject1". When instances of the second object are created you can specify the myObject1 property by creating an instance of Obj1 on the same line e.g. :

      myObject1: Obj1 {}

      but not by referring to the id of an existing Obj1 Reference.

      Obj1

      {id:myobj}

      .
      .
      .
      myObject1 : myObj

      as this gives at runtime :

      Unable to assign QObject* to Obj1_QMLTYPE_0*

      Attachments

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

        Activity

          People

            aakenned Aaron Kennedy
            wasley John Flaxman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes