Hello,
I am trying to give a fixed size to PushButton and GroupBox while coding QML. I am finding that no matter what I put for “height: xx” or “width: xx”, the item does not change size. Below is one example for the PushButton:
Button {
id: connectButton
width: 100
anchors.right: spacer2.left
anchors.verticalCenter: parent.verticalCenter
text: qsTr("Connect")
}
Could anyone explain why I cannot define a fixed size for anything.
Thanks
↧