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

SplitView doesn't handle dynamic add/remove of items

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes