Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Sizing items in Qt Quick 2.0

$
0
0
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

Viewing all articles
Browse latest Browse all 13965

Trending Articles