Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想默认将我的应用程序设置为 180 度方向。在 ApplicationWindow 级别旋转屏幕的 API 是什么?我的应用程序中有工具栏和状态栏,所以我需要旋转 ApplicationWindow 本身。
你可以使用一个Page组件作为你的主要组件ApplicationWindow
Page
ApplicationWindow
ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Hello World") Page{ rotation: 180 anchors.fill: parent footer: ToolBar{ ... } } }
结果: