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

QDeclarativeItem signal childrenChanged is never emitted

    XMLWordPrintable

Details

    • ddb5e1eef379c7f32a594d91b00ff3514c46b62a

    Description

      I'm trying to make a QML component that somehow takes care of its children. In order to do that I need to know when a new child is added and/or removed.
      My initial idea was to implement the onChildrenChanged handler but the associate signal handler is never called.

      Tested with the latest Qt/master branch as of today. Commit df6549d1b95af017305744af04a7bb3b10025660

      To reproduce, run attached example and:

      1) Click the black button, check the console output, children count is "1"
      2) Click one of the coloured rectangles
      3) Click the black button again, console output, children count is "2"

      onChildrenChanged is not called in this process.

      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)
            fleury Eduardo Fleury
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes