|
1Qter豆
因为使用场景问题,我的界面 需要旋转90度使用,但在加入Combox后发现弹出的界面没有同步旋转,如下图:
源码如下:
import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.5
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
Rectangle{
anchors.fill: parent
rotation: 90
GroupBox{
width: 240
height: 120
anchors.centerIn: parent
title: qsTr("Sensor Number")
ComboBox{
anchors.fill:parent
editable: false
model: ["1","2","3","4","5","6","7","8","9","10","11","12",]
}
}
}
}
该如何实现让第二张图片也旋转90度
|
|