-
Bug
-
Resolution: Done
-
P2: Important
-
5.13.1
-
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
}
}
- is duplicated by
-
QTBUG-79380 GridLayout does not emit property changes when changing some properties
-
- Closed
-