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

SplitView doesn't handle dynamic add/remove of items

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.4.0
    • 5.3.2
    • Quick: Controls 1
    • None

    Description

      The SplitView component doesn't handle the case where new item are reparented to it. For example by using the function Component.createObject() and specifing the SplitView as parent. Here's another example:

       
      SplitView
      {
        id: splitView
      }
      
      Item
      {
        id: item
        Component.onCompleted: item.parent = splitView
      }
      

      Looking at the source code of the SplitView we see that the components and children are handled only in the init() function that is called only on Component.onCompleted.

      Attachments

        Issue Links

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

          Activity

            People

              bachewii Jens
              cuke Filippo Cucchetto
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes