Layout.fillwidth returns 0
Unsolved
QML and Qt Quick
-
Hi,
I am using a GridLayout with 2 columns, and I want to get the width of the second column which Layout.fillwidth is true, however it returns 0.
Is there any way to determine the width if Layout.fillwidth is set to true? or any other way to implement such where i can determine the second column's width?
GridLayout { id: infoGrid Layout.fillWidth: true columns: 2 columnSpacing: 20 rowSpacing: 5 Text { text: qsTr("Server :") } Text { Layout.fillWidth: true text: qsTr("Server name") } }
Please advise, thanks!