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

SplitView: wrong behaviour when hidding an item

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.0
    • 5.1.1
    • Quick: Controls 1
    • None
    • Qt 5.1.1
      OSs: Linux (OpenSuse 12.3) and Windows 7
    • 09a74592234c84b3e428b452d844eaa1f6451040

    Description

      Having four items in a SplitView and hiding the third one makes the fourth item to position incorrectly.

      import QtQuick 2.1

      import QtQuick.Controls 1.0
      import QtQuick.Window 2.0
      import QtQuick.Layouts 1.0

      Rectangle{
      width:1200
      height:600
      SplitView{
      anchors.fill:parent
      Rectangle

      { id: r1 color: "red" Layout.minimumWidth: 300 height: parent.height }

      Rectangle

      { id: r2 color: "yellow" Layout.minimumWidth: 300 Layout.fillWidth: true height: parent.height }

      Rectangle

      { id: r3 color: "blue" Layout.minimumWidth: 300 height: parent.height visible:false }

      Rectangle

      { id: r4 color: "green" Layout.minimumWidth: 300 height: parent.height }

      }
      }

      Attachments

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

        Activity

          People

            richard Richard Moe Gustavsen
            deuteros Guillermo Amat
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes