⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainwindow.ui

📁 《精通QT4编程》第5章代码整理 加入修改
💻 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>文件(&amp;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>编辑(&amp;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>工具(&amp;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>新建(&amp;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>打开(&amp;O)</string>   </property>   <property name="shortcut" >    <string>Ctrl+O</string>   </property>  </action>  <action name="actClose" >   <property name="text" >    <string>关闭(&amp;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>保存(&amp;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>另存为(&amp;A)...</string>   </property>  </action>  <action name="actQuit" >   <property name="text" >    <string>退出(&amp;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>撤销(&amp;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>剪切(&amp;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>复制(&amp;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>粘贴(&amp;P)</string>   </property>   <property name="shortcut" >    <string>Ctrl+V</string>   </property>  </action>  <action name="actAll" >   <property name="text" >    <string>全选(&amp;A)</string>   </property>   <property name="shortcut" >    <string>Ctrl+A</string>   </property>  </action>  <action name="actFind" >   <property name="text" >    <string>查找文件(&amp;F)</string>   </property>  </action> </widget> <resources>  <include location="images/mainwindow.qrc" /> </resources> <connections/></ui>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -