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

Application hangs when anchoring items inside ColumLayout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.8.0
    • Quick: Layouts
    • None
    • Ubuntu 16.04 LTS

    Description

      We switched from Qt 5.4 to Qt 5.8 and encountered the issue. We had there following layout:

       

          Rectangle {
              ColumnLayout {
                  anchors.fill: parent
                  spacing: 0
                  Item {
                      Layout.fillHeight: true
                  }
                  Text {
                      anchors.fill: parent
                      font.pixelSize: 15
                      color: "white"
                      horizontalAlignment: Text.AlignHCenter
                      verticalAlignment: Text.AlignVCenter
                  }
                  Item {
                      Layout.fillHeight: true
                  }
              }
          }
       
      

      This was meant to center the text inside Rectangle. It is the stupidest way to do such thing, nevertheless, it was used. This code caused some infinite loop and application hanged up eating out all of the processor. The issue was easily fixed, but it was quite hard to find. Project to reproduce is in attach.

       

      Attachments

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

        Activity

          People

            smd Jan Arve
            knyaz_oleh Oleh Pidhirnyak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes