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

QML GridLayout does not emit signal for LayoutDirection, columnSpacing, RowSpacing changes

XMLWordPrintable

    • 032c356ec91879599d6770bfb061a85b0f10eb34 (qt/qtdeclarative/5.13)

      GridLayout (QtQuick.Layouts 1.13) is not emitting any signal on value change for some properties like columnSpacingChanged, rowSpacingChanged, spacingChanged, layoutDirectionChanged

         GridLayout {
             id: grid
             columns: 2
      
             columnSpacing: 5
             Text { text: "Three"; font.bold: true; }
             Text { text: "words"; color: "red" }
             Text { text: "in"; font.underline: true }
             Text { text: "a"; font.pixelSize: 20 }
             Text { text: "row"; font.strikeout: true }
             layoutDirection: Qt.RightToLeft
      
             onColumnsChanged: console.log("no. of columns changed")           // This gets triggered
             onColumnSpacingChanged: console.log("column spacing Changed")    // does not get triggered
             onLayoutDirectionChanged: console.log("Layout Direction Changed")  // does not get triggered
         } 
         Timer
         {
             interval: 500
             running: true
             onTriggered: {
                 grid.columnSpacing=20
                 grid.layoutDirection=Qt.LeftToRight
                 grid.columns =4
             }
         }
      

        For Gerrit Dashboard: QTBUG-79359
        # Subject Branch Project Status CR V

            smd Jan Arve
            shmittal Shveta Mittal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes