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

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

    XMLWordPrintable

Details

    • 032c356ec91879599d6770bfb061a85b0f10eb34 (qt/qtdeclarative/5.13)

    Description

      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
             }
         }
      

      Attachments

        Issue Links

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

          Activity

            People

              smd Jan Arve
              shmittal Shveta Mittal (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