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

RowLayout: Layout not properly drawn when a control is hidden and shown

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.1.0
    • Quick: Controls 1

    Description

      When an item is hidden and then shown again, the layout is not properly redrawn.

      Testcase:

      import QtQuick 2.0
      import QtDesktop 1.0
      
      Item {
          width: 800
          height: 300
      
          RowLayout {
              ComboBox {
                  width: 200
                  model: [1,2,3]
              }
              CheckBox {
                  text: "checkbox"
              }
              ToolButton {
                  id: resetButton
                  text: toshowhide.visible ? "Hide" : "Show"
                  implicitWidth: 100
                  onClicked: toshowhide.visible = !toshowhide.visible
              }
      
              CheckBox {
                  id: toshowhide
                  text: "Show Hide"
              }
              SpinBox {
              }
          }
      }
      

      Attachments

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

        Activity

          People

            smd Jan Arve
            carochao Caroline Chao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes