-
使用Qt Quick来开发界面
版本:Qt 6.6
代码示例
import QtQuick import Qt.labs.platform import QtQuick.Controls ApplicationWindow { id: appRoot color: "#090F17" height: 480 visible: true width: 640 MenuBar { id: editorMainWindowMenu Menu { id: fileMenu title: qsTr("File") } //菜单-编辑 Menu { id: editorMenu title: qsTr("Editor") MenuItem { } } //菜单-窗口 Menu { id: windowMenu title: qsTr("Window") MenuItem { } } //菜单-帮助 Menu { id: helpMenu title: qsTr("Help") MenuItem { } } } Rectangle { color: "green" } }
效果
-
@LyLamp If you want to post in Chinese please do it here: https://forum.qt.io/category/37/chinese
-