📄 mainwindow.ui
字号:
<ui version="4.0" > <class>MainWindow</class> <widget class="QMainWindow" name="MainWindow" > <property name="geometry" > <rect> <x>0</x> <y>0</y> <width>548</width> <height>540</height> </rect> </property> <property name="windowTitle" > <string>MainWindow</string> </property> <widget class="QWidget" name="centralwidget" > <layout class="QVBoxLayout" > <item> <widget class="QTextEdit" name="textEdit" /> </item> </layout> </widget> <widget class="QMenuBar" name="menubar" > <property name="geometry" > <rect> <x>0</x> <y>0</y> <width>548</width> <height>28</height> </rect> </property> <widget class="QMenu" name="menu_F" > <property name="title" > <string>文件(&F)</string> </property> <addaction name="actNew" /> <addaction name="actOpen" /> <addaction name="actClose" /> <addaction name="separator" /> <addaction name="actSave" /> <addaction name="actASave" /> <addaction name="separator" /> <addaction name="actQuit" /> </widget> <widget class="QMenu" name="menu_E" > <property name="title" > <string>编辑(&E)</string> </property> <addaction name="actUndo" /> <addaction name="separator" /> <addaction name="actAll" /> <addaction name="actCut" /> <addaction name="actCopy" /> <addaction name="actPaste" /> <addaction name="separator" /> </widget> <widget class="QMenu" name="menu_T" > <property name="title" > <string>工具(&T)</string> </property> <addaction name="actFind" /> </widget> <addaction name="menu_F" /> <addaction name="menu_E" /> <addaction name="menu_T" /> </widget> <widget class="QToolBar" name="fileToolBar" > <property name="windowTitle" > <string>toolBar</string> </property> <attribute name="toolBarArea" > <enum>TopToolBarArea</enum> </attribute> <attribute name="toolBarBreak" > <bool>false</bool> </attribute> <addaction name="actNew" /> <addaction name="actOpen" /> <addaction name="actSave" /> <addaction name="actASave" /> </widget> <widget class="QToolBar" name="toolBar" > <property name="windowTitle" > <string>toolBar</string> </property> <attribute name="toolBarArea" > <enum>TopToolBarArea</enum> </attribute> <attribute name="toolBarBreak" > <bool>false</bool> </attribute> <addaction name="actUndo" /> <addaction name="actCut" /> <addaction name="actCopy" /> <addaction name="actPaste" /> </widget> <widget class="QToolBar" name="toolBar_2" > <property name="windowTitle" > <string>toolBar_2</string> </property> <attribute name="toolBarArea" > <enum>TopToolBarArea</enum> </attribute> <attribute name="toolBarBreak" > <bool>false</bool> </attribute> </widget> <widget class="QToolBar" name="toolBar_3" > <property name="windowTitle" > <string>toolBar_3</string> </property> <attribute name="toolBarArea" > <enum>TopToolBarArea</enum> </attribute> <attribute name="toolBarBreak" > <bool>false</bool> </attribute> </widget> <action name="actNew" > <property name="icon" > <iconset resource="images/mainwindow.qrc" >:/new/prefix1/new.png</iconset> </property> <property name="text" > <string>新建(&N)</string> </property> <property name="shortcut" > <string>Ctrl+N</string> </property> </action> <action name="actOpen" > <property name="icon" > <iconset resource="images/mainwindow.qrc" >:/new/prefix1/open.png</iconset> </property> <property name="text" > <string>打开(&O)</string> </property> <property name="shortcut" > <string>Ctrl+O</string> </property> </action> <action name="actClose" > <property name="text" > <string>关闭(&C)</string> </property> </action> <action name="actSave" > <property name="icon" > <iconset resource="images/mainwindow.qrc" >:/new/prefix1/save.png</iconset> </property> <property name="text" > <string>保存(&S)...</string> </property> <property name="shortcut" > <string>Ctrl+S</string> </property> </action> <action name="actASave" > <property name="icon" > <iconset resource="images/mainwindow.qrc" >:/new/prefix1/asave.png</iconset> </property> <property name="text" > <string>另存为(&A)...</string> </property> </action> <action name="actQuit" > <property name="text" > <string>退出(&X)</string> </property> </action> <action name="actUndo" > <property name="icon" > <iconset resource="images/mainwindow.qrc" >:/new/prefix1/undo.png</iconset> </property> <property name="text" > <string>撤销(&U)</string> </property> <property name="shortcut" > <string>Ctrl+Z</string> </property> </action> <action name="actCut" > <property name="icon" > <iconset resource="images/mainwindow.qrc" >:/new/prefix1/cut.png</iconset> </property> <property name="text" > <string>剪切(&X)</string> </property> <property name="shortcut" > <string>Ctrl+X</string> </property> </action> <action name="actCopy" > <property name="icon" > <iconset resource="images/mainwindow.qrc" >:/new/prefix1/copy.png</iconset> </property> <property name="text" > <string>复制(&C)</string> </property> <property name="shortcut" > <string>Ctrl+C</string> </property> </action> <action name="actPaste" > <property name="icon" > <iconset resource="images/mainwindow.qrc" >:/new/prefix1/paste.png</iconset> </property> <property name="text" > <string>粘贴(&P)</string> </property> <property name="shortcut" > <string>Ctrl+V</string> </property> </action> <action name="actAll" > <property name="text" > <string>全选(&A)</string> </property> <property name="shortcut" > <string>Ctrl+A</string> </property> </action> <action name="actFind" > <property name="text" > <string>查找文件(&F)</string> </property> </action> </widget> <resources> <include location="images/mainwindow.qrc" /> </resources> <connections/></ui>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -