designer-manual-11.html
来自「QT 下载资料仅供参考」· HTML 代码 · 共 155 行 · 第 1/2 页
HTML
155 行
<!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-toolbuttons.leaf:3 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Reference: Toolbar Buttons</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 Classes</font></a> | <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> | <a href="annotated.html"><font color="#004faf">Annotated</font></a> | <a href="groups.html"><font color="#004faf">Grouped 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-10.html">Prev: Reference: Menu Options</a>] [<a href="designer-manual.html">Home</a>] [<a href="designer-manual-12.html">Next: Reference: Dialogs</a>]</p><h2 align="center">Reference: Toolbar Buttons</h2><h3><a name="1"></a>Introduction</h3><p><em>Qt Designer</em>'s toolbar buttons provide fast access to common functionality.</p><p>Toolbar buttons are grouped in several toolbars. Toolbars have a handle at the left hand side which can be clicked to minimize the toolbar. Toolbars that have been minimized have their handle appear just under the menu bar; click the handle to restore the toolbar to the last position it occupied. You can drag a toolbar's handle to move the toolbar to a different position in the toolbar area. Toolbars can be dragged out of the toolbar area entirely and made into stand-alone tool dock windows. To hide a tool dock window click its close button. To restore a hidden tool dock window, right click the tool area, then click the name of the tool dock window you wish to restore.</p><p align="center"><img align="middle" src="qd-filetoolbuttons3.png" width="208" height="46"></p><blockquote><p align="center"><em>File Toolbuttons</em></p></blockquote><h3><a name="2"></a>The File Toolbar Buttons</h3><ul><li><p><b>New</b><br> Click this toolbar button (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><li><p><b>Open</b><br> Click this toolbar button (or press <b>Ctrl+O</b>) to open existing projects, forms or files. This button invokes the <a href="designer-manual-12.html#2-2">File Open Dialog</a> which is used to select files.</p><li><p><b>Save</b><br> Click this toolbar button (or press <b>Ctrl+S</b>) to save the project, forms and files. For a new project that has no 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.</p><li><p><b>Active Project</b><br> Click the combobox to view the names of the projects that are currently open and select a project name to toggle between the projects.</p></ul><p align="center"><img align="middle" src="qd-edittoolbuttons3.png" width="160" height="46"></p><blockquote><p align="center"><em>Edit Toolbuttons</em></p></blockquote><h3><a name="3"></a>The Edit Toolbar Buttons</h3><ul><li><p><b>Undo</b><br> Click this toolbar button (or press <b>Ctrl+Z</b>) to undo an action. The name of the last action that was performed appears after the word 'Undo' in this toolbar button's tooltip.</p><li><p><b>Redo</b><br> Click this toolbar button (or press <b>Ctrl+Y</b>) to redo an action. The name of the last action that was performed appears after the word 'Redo' in this toolbar button's tooltip.</p><li><p><b>Cut</b><br> Click this toolbar button (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>Copy</b><br> Click this toolbar button (or press <b>Ctrl+C</b>) to copy the selected item from the current form or file to the clipboard.</p><li><p><b>Paste</b><br> Click this toolbar button (or press <b>Ctrl+V</b>) to paste the selected item (if any) from the clipboard into the current form or file.</p></ul><p align="center"><img align="middle" src="qd-searchttoolbuttons3.png" width="159" height="46"></p><blockquote><p align="center"><em>Search Toolbuttons</em></p></blockquote><h3><a name="4"></a>The Search Toolbar Buttons</h3><ul><li><p><b>Find</b><br> Click this toolbar button (or press <b>Ctrl+F</b>) to invoke the <a href="designer-manual-12.html#5-1">Find Text Dialog</a>.</p><li><p><b>Find Incremental</b><br> Click this toolbar button (or press <b>Alt+I</b>) to place the cursor in the text box located next to the <b>Find</b> toolbar button. Type characters into the text box; as you type, <em>Qt Designer</em> will highlight the first occurrence of the text that it finds in the file. Press the <b>Enter</b> key to go to the next occurrence of the text. Press the <b>Esc</b> key once you have found the word you are looking for to place the cursor in the editor.</p></ul><h3><a name="5"></a>The Tools Toolbar Buttons</h3><p>If you want to add the same kind of widget several times to a form, for example, several push buttons, <em>double click</em> the widget's toolbar button. After this, every time you click the form a new widget will be added. Click the <b>Pointer</b> toolbar button to leave this mode.</p><p align="center"><img align="middle" src="qd-toolstoolbuttons4.png" width="93" height="46"></p><blockquote><p align="center"><em>Tools</em></p></blockquote><h4><a name="5-1"></a>Tools</h4><ul><li><p><b>Pointer</b><br> Click this toolbar button (or press <b>F2</b>) to de-select any selected widget toolbar button. The pointer is also used to stop inserting new widgets if you double clicked a widget toolbar button. Press the <b>Esc</b> key to return to the pointer at any time.</p><li><p><b>Connect Signals and Slots</b><br> Click this toolbar button (or press <b>F3</b>) to connect signals and slots. Then click on a widget and drag the connection line to the widget (or the form) that you want to connect to. Release the mouse button and the <a href="designer-manual-12.html#11">Edit Connections Dialog</a> will appear.</p><li><p><b>Tab Order</b><br> Click this toolbar button (or press <b>F4</b>) to set the tab order for all the widgets on the form that can accept keyboard focus. Click this toolbar button and blue circles with numbers on them appear next to the widgets. Click the widget that you want to be first in the tab order, then click the widget that should be next in the tab order, and continue until all the widgets have the tab order numbers you want. If you make a mistake, double click the first widget and start again. Press <b>Esc</b> to leave tab order mode. If you want to revert your changes, leave tab order mode, then undo.</p></ul><p align="center"><img align="middle" src="qd-buttonstoolbuttons3.png" width="123" height="46"></p><blockquote><p align="center"><em>Buttons</em></p></blockquote><h4><a name="5-2"></a>Buttons</h4><ul><li><p><b>PushButton</b><br> Click this toolbar button, then click the form, to place a Pushbutton on the form.</p><li><p><b>ToolButton</b><br> Click this toolbar button, then click the form, to place a Toolbutton on the form.</p><li><p><b>RadioButton</b><br> Click this toolbar button, then click the form, to place a Radiobutton on the form. It is recommended that you place RadioButtons inside ButtonGroups so that Qt will automatically ensure that only one RadioButton in the group is active at any one time.</p><li><p><b>CheckBox</b><br> Click this toolbar button, then click the form, to place a CheckBox on the form.</p></ul><p align="center"><img align="middle" src="qd-containertoolbuttons3.png" width="123" height="46"></p>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?