Home > Mobile >  For help in the QML Combox rotation?
For help in the QML Combox rotation?

Time:03-26

Because the problem of usage scenarios, I need to rotate 90 degrees to use interface, but not found in the pop-up interface after joining Combox synchronous rotation, the diagram below:





The source code is as follows:
The import QtQuick 2.12
The import QtQuick. Windows 2.12
The import QtQuick. Controls 2.5
The Window {
Visible: true
Width: 640
Height: 480
Title: qsTr (" Hello World ")
A Rectangle {
Anchors. The fill: parent
Rotation: 90
GroupBox {
Width: 240
Height: 120
Anchors. CenterIn: parent
Title: qsTr (" Sensor Number ")

ComboBox {
Anchors. The fill: parent
The editable: false
Model: [" 1 ", "2", "3", "4", "5", "6", "7", "eight" and "9", "10", "11", "12",]
}
}
}
}


How to realize the second picture is rotated 90 degrees

CodePudding user response:

In learning technology
  •  Tags:  
  • Qt
  • Related