0
当前我有一个qml应用程序,每个图像都有特定的页边距。它们在屏幕的特定宽度上完美显示。但是,如果屏幕放大,它会变得混乱并散落。因为边距设置为特定的数字。什么是qml中这个问题的更好的解决方案?我试图设置position: relative
但这没有奏效。屏幕较大,QML按钮和图像的固定页边距
例如:
我们有两个按钮
Button1 {
anchors {
right: parent.right
rightMargin: 175
bottom: parent.bottom
bottomMargin: 95
}
}
Button2 {
iconNext: true
anchors {
right: parent.right
rightMargin: 53
bottom: parent.bottom
bottomMargin: 95
}
}
这两个按钮看起来精湛我的屏幕上。当他们相互分离时,在更大的屏幕上变得糟糕透顶。
什么是解决方案