Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
None
-
5.7.0
Description
ToggleButton does not use the set width and height. Tested in a Gridlayout.
Works fine:
Rectangle { width: Screen.desktopAvailableWidth/5; height: Screen.desktopAvailableWidth/5; color: "green" }
Wrong size:
ToggleButton {
id: button1
width: Screen.desktopAvailableWidth/5
height: Screen.desktopAvailableWidth/5
Image {
anchors.centerIn: parent
width: parent.width * 0.7
height: parent.height * 0.7
source: "qrc:/images/test.png"
}
}