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

📄 designer-manual-10.html

📁 QT 下载资料仅供参考
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/reggie/tmp/qt-3.0-reggie-5401/qt-x11-commercial-3.0.5/tools/designer/book/chap-menus.leaf:3 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Reference: Menu Options</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr bgcolor="#E5E5E5"><td valign=center> <a href="index.html"><font color="#004faf">Home</font></a> | <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a> | <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a> | <a href="annotated.html"><font color="#004faf">Annotated</font></a> | <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a> | <a href="functions.html"><font color="#004faf">Functions</font></a></td><td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><p align="right">[<a href="designer-manual-9.html">Prev: Reference: Key Bindings</a>] [<a href="designer-manual.html">Home</a>] [<a href="designer-manual-11.html">Next: Reference: Toolbar Buttons</a>]</p><h2 align="center">Reference: Menu Options</h2><h3><a name="1"></a>Introduction</h3><p><em>Qt Designer</em> provides menu options that invoke the actions necessary to create applications. Many menu options lead to dialog boxes that provide additional options and functionality. The most commonly used menu options also have corresponding toolbar buttons. This chapter explains each menu option and its use. For menu options that invoke a dialog box or which have a corresponding toolbar button, there is a cross-reference to the detailed explanation that appears in the relevant chapter.</p><p align="center"><img align="middle" src="qd-filemenu1.png" width="294" height="267"></p><blockquote><p align="center"><em>The File Menu</em></p></blockquote><h3><a name="2"></a>The File Menu</h3><!-- index Files --><p>This menu is invoked with <b>Alt+F</b>, and provides the following options:</p><ul><!-- index Adding!Files to Projects --><!-- index Files!Adding to Projects --><li><p><b>File|New</b><br> Click this menu option (or press <b>Ctrl+N</b>) to create a new project, form or file. This option invokes the <a href="designer-manual-12.html#2-1">New File Dialog</a>.</p><!-- index Files!Opening --><li><p><b>File|Open</b><br> Click this menu option (or press <b>Ctrl+O</b>) to open existing projects, forms or files. The <a href="designer-manual-12.html#2-2">File Open Dialog</a> is invoked through which a file name can be selected.</p><!-- index Files!Closing --><li><p><b>File|Close</b><br> Click this menu option to close the currently open project. If the project has unsaved changes, the <a href="designer-manual-12.html#9">Save Form Dialog</a> appears.</p><!-- index Files!Saving --><li><p><b>File|Save</b><br> Click this menu option (or press <b>Ctrl+S</b>) to save the project along with its forms and files. For a project that has forms or files, click 'Save' to save the project before exiting. For new forms, click 'Save' and the <a href="designer-manual-12.html#10">Save Form As Dialog</a> appears. For forms that have been saved previously click 'Save'. For new files or for files that have been changed, click 'Save'.</p><!-- index Files!Saving --><li><p><b>File|Save As</b><br> Click this menu option to save and name the current form or file. This option invokes the <a href="designer-manual-12.html#10">Save Form As Dialog</a>.</p><!-- index Files!Saving --><li><p><b>File|Save All</b><br> Click this menu option to save every open file and form in every open project.</p><!-- index Files!Templates --><li><p><b>File|Create Template</b><br> Click this menu option to create a form template. This option invokes the <a href="designer-manual-12.html#2-4">Create Template Dialog</a> dialog.</p><li><p><b>File|Recently Opened Files</b><br> Click this menu option to list the most recently opened files. Click one of the files listed to open it. Note that we recommend that you open projects rather than files. You can open a file by clicking the file's name in the project's <a href="designer-manual-14.html#2">File Overview Window</a>.</p><li><p><b>File|Recently Opened Projects</b><br> Click this menu option to list the most recently opened projects. Click one of the projects listed to open it.</p><li><p><b>File|Exit</b><br> Click this menu option to exit <em>Qt Designer</em>. If any open files have unsaved changes, the <em>Save Form Dialog</em> message box will appear for each of them, before <em>Qt Designer</em> exits. Note that for a form that has not been saved previously but has had changes made to it or that has been saved but has had changes made to it, the <em>Save Form Dialog</em> is invoked. Click <b>Yes</b> to invoke the <em>Save Form As</em> dialog.</p></ul><p>See also <a href="designer-manual-11.html#2">The File Toolbar Buttons</a>.</p><p align="center"><img align="middle" src="qd-editmenu1.png" width="290" height="317"></p><blockquote><p align="center"><em>The Edit Menu</em></p></blockquote><h3><a name="3"></a>The Edit Menu</h3><p>This menu is invoked with <b>Alt+E</b>, and provides the following options:</p><ul><!-- index Undo and Redo --><li><p><b>Edit|Undo</b><br> Click this menu option (or press <b>Ctrl+Z</b>) to undo an action. The name of the last action that was performed appears after the word 'Undo'.</p><!-- index Undo and Redo --><li><p><b>Edit|Redo</b><br> Click this menu option (or press <b>Ctrl+Y</b>) to redo an action. The name of the last action that was performed appears after the word 'Redo'.</p><li><p><b>Edit|Cut</b><br> Click this menu option (or press <b>Ctrl+X</b>) to delete the selected item from the current form or file and copy it to the clipboard.</p><li><p><b>Edit|Copy</b><br> Click this menu option (or press <b>Ctrl+C</b>) to copy the selected item from the current form or file to the clipboard.</p><li><p><b>Edit|Paste</b><br> Click this menu option (or press <b>Ctrl+V</b>) to paste the clipboard item (if any) into the current form or file.</p><li><p><b>Edit|Delete</b><br> Click this menu option (or press <b>Del</b>) to delete the selected item from the current form or file.</p><li><p><b>Edit|Select All</b><br> Click this menu option (or press <b>Ctrl+A</b>) to highlight all the widgets on the current form or all the text in the current file.</p><!-- index Accelerators, Checking --><li><p><b>Edit|Check Accelerators</b><br> Click this menu option (or press <b>Alt+R</b>) to verify that all the accelerators are used only once. If an accelerator is used more than once, a message box appears with the statement 'The accelerator 'x' is used 'y' times'. Click <b>Select</b> to highlight the widgets with the same accelerator, or click <b>Cancel</b> to exit the message box without taking any action.</p><!-- index Signals and Slots!Edit Slots Dialog --><!-- index Edit Slots Dialog --><li><p><b>Edit|Slots</b><br> Click this menu option to edit and create slots. This option invokes the <a href="designer-manual-12.html#3-1">Edit Slots Dialog</a>.</p><!-- index Signals and Slots!View Connections Dialog --><!-- index View Connections Dialog --><li><p><b>Edit|Connections</b><br> Click this menu option to invoke the <a href="designer-manual-12.html#3-2">View Connections Dialog</a>.</p><!-- index Form Settings Dialog --><li><p><b>Edit|Form Settings</b><br> Click this menu option to invoke the <a href="designer-manual-12.html#3-3">Form Settings Dialog</a>.</p><!-- index Preferences Dialog --><li><p><b>Edit|Preferences</b><br> Click this menu option to invoke the <a href="designer-manual-12.html#3-4">Preferences Dialog</a>.</p></ul><p>See also <a href="designer-manual-11.html#3">The Edit Toolbar Buttons</a>.</p><p align="center"><img align="middle" src="qd-projectmenu.png" width="195" height="131">

⌨️ 快捷键说明

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