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

QML element initialization

    XMLWordPrintable

Details

    • 250545f7996927fa151097857179b5895010506b

    Description

      When creating an object dynamically, using Qt.createComponent(parent), the object's parent is set just after classBegin() and componentComplete() methods are called. While declaring it statically, the parent is set before classBegin() method.
      Wouldn't it be better if the parent is set before classBegin() method also when it's created dynamically? This would avoid corner cases in the C+ side, since when classBegin() method is called, the parent is already set (if it's not null) regardless the object creation mechanism.

      Related thread: http://lists.trolltech.com/pipermail/qt-qml/2010-August/000906.html

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            arezende Adriano Rezende
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes