📄 form1.ui
字号:
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>Form1</class>
<widget class="QMainWindow">
<property name="name">
<cstring>Form1</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>600</width>
<height>483</height>
</rect>
</property>
<property name="caption">
<string>Form1</string>
</property>
<widget class="QPushButton">
<property name="name">
<cstring>pushButton1</cstring>
</property>
<property name="geometry">
<rect>
<x>430</x>
<y>60</y>
<width>80</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>Close</string>
</property>
</widget>
</widget>
<menubar>
<property name="name">
<cstring>MenuBar</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>600</width>
<height>28</height>
</rect>
</property>
<item text="&File" name="fileMenu">
<action name="fileNewAction"/>
<action name="fileOpenAction"/>
<action name="fileSaveAction"/>
<action name="fileSaveAsAction"/>
<separator/>
<action name="filePrintAction"/>
<separator/>
<action name="fileExitAction"/>
</item>
<item text="&Edit" name="editMenu">
<action name="editUndoAction"/>
<action name="editRedoAction"/>
<separator/>
<action name="editCutAction"/>
<action name="editCopyAction"/>
<action name="editPasteAction"/>
<separator/>
<action name="editFindAction"/>
</item>
<item text="&Help" name="helpMenu">
<action name="helpContentsAction"/>
<action name="helpIndexAction"/>
<separator/>
<action name="helpAboutAction"/>
</item>
</menubar>
<toolbars>
</toolbars>
<actions>
<action>
<property name="name">
<cstring>fileNewAction</cstring>
</property>
<property name="iconSet">
<iconset>filenew</iconset>
</property>
<property name="text">
<string>New</string>
</property>
<property name="menuText">
<string>&New</string>
</property>
<property name="accel">
<string>Ctrl+N</string>
</property>
</action>
<action>
<property name="name">
<cstring>fileOpenAction</cstring>
</property>
<property name="iconSet">
<iconset>fileopen</iconset>
</property>
<property name="text">
<string>Open</string>
</property>
<property name="menuText">
<string>&Open...</string>
</property>
<property name="accel">
<string>Ctrl+O</string>
</property>
</action>
<action>
<property name="name">
<cstring>fileSaveAction</cstring>
</property>
<property name="iconSet">
<iconset>filesave</iconset>
</property>
<property name="text">
<string>Save</string>
</property>
<property name="menuText">
<string>&Save</string>
</property>
<property name="accel">
<string>Ctrl+S</string>
</property>
</action>
<action>
<property name="name">
<cstring>fileSaveAsAction</cstring>
</property>
<property name="text">
<string>Save As</string>
</property>
<property name="menuText">
<string>Save &As...</string>
</property>
<property name="accel">
<string></string>
</property>
</action>
<action>
<property name="name">
<cstring>filePrintAction</cstring>
</property>
<property name="iconSet">
<iconset>print</iconset>
</property>
<property name="text">
<string>Print</string>
</property>
<property name="menuText">
<string>&Print...</string>
</property>
<property name="accel">
<string>Ctrl+P</string>
</property>
</action>
<action>
<property name="name">
<cstring>fileExitAction</cstring>
</property>
<property name="text">
<string>Exit</string>
</property>
<property name="menuText">
<string>E&xit</string>
</property>
<property name="accel">
<string></string>
</property>
</action>
<action>
<property name="name">
<cstring>editUndoAction</cstring>
</property>
<property name="iconSet">
<iconset>undo</iconset>
</property>
<property name="text">
<string>Undo</string>
</property>
<property name="menuText">
<string>&Undo</string>
</property>
<property name="accel">
<string>Ctrl+Z</string>
</property>
</action>
<action>
<property name="name">
<cstring>editRedoAction</cstring>
</property>
<property name="iconSet">
<iconset>redo</iconset>
</property>
<property name="text">
<string>Redo</string>
</property>
<property name="menuText">
<string>&Redo</string>
</property>
<property name="accel">
<string>Ctrl+Y</string>
</property>
</action>
<action>
<property name="name">
<cstring>editCutAction</cstring>
</property>
<property name="iconSet">
<iconset>editcut</iconset>
</property>
<property name="text">
<string>Cut</string>
</property>
<property name="menuText">
<string>&Cut</string>
</property>
<property name="accel">
<string>Ctrl+X</string>
</property>
</action>
<action>
<property name="name">
<cstring>editCopyAction</cstring>
</property>
<property name="iconSet">
<iconset>editcopy</iconset>
</property>
<property name="text">
<string>Copy</string>
</property>
<property name="menuText">
<string>C&opy</string>
</property>
<property name="accel">
<string>Ctrl+C</string>
</property>
</action>
<action>
<property name="name">
<cstring>editPasteAction</cstring>
</property>
<property name="iconSet">
<iconset>editpaste</iconset>
</property>
<property name="text">
<string>Paste</string>
</property>
<property name="menuText">
<string>&Paste</string>
</property>
<property name="accel">
<string>Ctrl+V</string>
</property>
</action>
<action>
<property name="name">
<cstring>editFindAction</cstring>
</property>
<property name="iconSet">
<iconset>searchfind</iconset>
</property>
<property name="text">
<string>Find</string>
</property>
<property name="menuText">
<string>&Find...</string>
</property>
<property name="accel">
<string>Ctrl+F</string>
</property>
</action>
<action>
<property name="name">
<cstring>helpContentsAction</cstring>
</property>
<property name="text">
<string>Contents</string>
</property>
<property name="menuText">
<string>&Contents...</string>
</property>
<property name="accel">
<string></string>
</property>
</action>
<action>
<property name="name">
<cstring>helpIndexAction</cstring>
</property>
<property name="text">
<string>Index</string>
</property>
<property name="menuText">
<string>&Index...</string>
</property>
<property name="accel">
<string></string>
</property>
</action>
<action>
<property name="name">
<cstring>helpAboutAction</cstring>
</property>
<property name="text">
<string>About</string>
</property>
<property name="menuText">
<string>&About</string>
</property>
<property name="accel">
<string></string>
</property>
</action>
</actions>
<connections>
<connection>
<sender>fileNewAction</sender>
<signal>activated()</signal>
<receiver>Form1</receiver>
<slot>fileNew()</slot>
</connection>
<connection>
<sender>fileOpenAction</sender>
<signal>activated()</signal>
<receiver>Form1</receiver>
<slot>fileOpen()</slot>
</connection>
<connection>
<sender>fileSaveAction</sender>
<signal>activated()</signal>
<receiver>Form1</receiver>
<slot>fileSave()</slot>
</connection>
<connection>
<sender>fileSaveAsAction</sender>
<signal>activated()</signal>
<receiver>Form1</receiver>
<slot>fileSaveAs()</slot>
</connection>
<connection>
<sender>filePrintAction</sender>
<signal>activated()</signal>
<receiver>Form1</receiver>
<slot>filePrint()</slot>
</connection>
<connection>
<sender>fileExitAction</sender>
<signal>activated()</signal>
<receiver>Form1</receiver>
<slot>fileExit()</slot>
</connection>
<connection>
<sender>editUndoAction</sender>
<signal>activated()</signal>
<receiver>Form1</receiver>
<slot>editUndo()</slot>
</connection>
<connection>
<sender>editRedoAction</sender>
<signal>activated()</signal>
<receiver>Form1</receiver>
<slot>editRedo()</slot>
</connection>
<connection>
<sender>editCutAction</sender>
<signal>activated()</signal>
<receiver>Form1</receiver>
<slot>editCut()</slot>
</connection>
<connection>
<sender>editCopyAction</sender>
<signal>activated()</signal>
<receiver>Form1</receiver>
<slot>editCopy()</slot>
</connection>
<connection>
<sender>editPasteAction</sender>
<signal>activated()</signal>
<receiver>Form1</receiver>
<slot>editPaste()</slot>
</connection>
<connection>
<sender>editFindAction</sender>
<signal>activated()</signal>
<receiver>Form1</receiver>
<slot>editFind()</slot>
</connection>
<connection>
<sender>helpIndexAction</sender>
<signal>activated()</signal>
<receiver>Form1</receiver>
<slot>helpIndex()</slot>
</connection>
<connection>
<sender>helpContentsAction</sender>
<signal>activated()</signal>
<receiver>Form1</receiver>
<slot>helpContents()</slot>
</connection>
<connection>
<sender>helpAboutAction</sender>
<signal>activated()</signal>
<receiver>Form1</receiver>
<slot>helpAbout()</slot>
</connection>
<connection>
<sender>pushButton1</sender>
<signal>clicked()</signal>
<receiver>Form1</receiver>
<slot>pushButton1_clicked()</slot>
</connection>
</connections>
<includes>
<include location="local" impldecl="in implementation">form1.ui.h</include>
</includes>
<slots>
<slot>fileNew()</slot>
<slot>fileOpen()</slot>
<slot>fileSave()</slot>
<slot>fileSaveAs()</slot>
<slot>filePrint()</slot>
<slot>fileExit()</slot>
<slot>editUndo()</slot>
<slot>editRedo()</slot>
<slot>editCut()</slot>
<slot>editCopy()</slot>
<slot>editPaste()</slot>
<slot>editFind()</slot>
<slot>helpIndex()</slot>
<slot>helpContents()</slot>
<slot>helpAbout()</slot>
<slot>pushButton1_clicked()</slot>
</slots>
<pixmapinproject/>
<layoutdefaults spacing="6" margin="11"/>
</UI>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -