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

Layout's minimumHeight crash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.1.0 RC
    • Quick: Layouts
    • None
    • Windows

    Description

      Setting a layout's minimumHeight too small crashes the application.

      In below snippet setting the RowLayout's Layout.minimumHeight to < 5 crashes the application. In the snippet, setting the Layout.minimumHeight to flatShadingToggle.height also crashes the application. 

       

      This bug can be reproduced with qlm3doscilloscope example from datavisualization.

      RowLayout {
                      id: buttonLayout
                      Layout.fillHeight: true
                      Layout.fillWidth: true
                      Layout.minimumHeight: exitButton.height
                      spacing: 0
      
                      Button {
                          id: flatShadingToggle
                          Layout.fillHeight: true
                          Layout.fillWidth: true
      
                          text: surfaceSeries.flatShadingSupported ? "Show Flat" : "Flat not supported"
                          enabled: surfaceSeries.flatShadingSupported
      
                          onClicked: {
                              if (surfaceSeries.flatShadingEnabled === true) {
                                  surfaceSeries.flatShadingEnabled = false;
                                  text = "Show Flat"
                              } else {
                                  surfaceSeries.flatShadingEnabled = true;
                                  text = "Show Smooth"
                              }
                          }
                      }
      
                      Button {
                          id: surfaceGridToggle
                          Layout.fillHeight: true
                          Layout.fillWidth: true
      
                          text: "Show Surface Grid"
      
                          onClicked: {
                              if (surfaceSeries.drawMode & Surface3DSeries.DrawWireframe) {
                                  surfaceSeries.drawMode &= ~Surface3DSeries.DrawWireframe;
                                  text = "Show Surface Grid"
                              } else {
                                  surfaceSeries.drawMode |= Surface3DSeries.DrawWireframe;
                                  text = "Hide Surface Grid"
                              }
                          }
                      }
      
                      Button {
                          id: exitButton
                          Layout.fillHeight: true
                          Layout.fillWidth: true
      
                          text: "Quit"
      
                          onClicked: Qt.quit();
                      }
                  }
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            oulu_hillbilly Sami Varanka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes