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

SplitView shows a redundant handle when hiding the last item.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • 5.2.0
    • 5.1.0 RC1
    • Quick: Controls 1
    • None

    Description

      Click anywhere to hide the blue rectangle. The wide black handle shouldn't be visible.

      import QtQuick 2.1
      import QtQuick.Layouts 1.0
      import QtQuick.Controls 1.0
      
      SplitView {
          id: splitter
      
          width: 320
          height: 240
      
          handleDelegate: Rectangle {
              width: 10
              color: "black"
          }
      
          Rectangle {
              id: rect1
              width: 160
              color: "pink"
              Layout.fillWidth: true
              MouseArea {
                  anchors.fill: parent
                  onClicked: rect2.visible = !rect2.visible
              }
          }
      
          Rectangle {
              id: rect2
              width: 160
              color: "steelblue"
              Layout.fillWidth: true
              MouseArea {
                  anchors.fill: parent
                  onClicked: rect2.visible = false
              }
          }
      }
      

      Attachments

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

        Activity

          People

            richard Richard Moe Gustavsen
            jpnurmi J-P Nurmi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes