📄 designer-manual-10.html
字号:
</p><blockquote><p align="center"><em>The Project Menu</em></p></blockquote><h3><a name="4"></a>The Project Menu</h3><p>This menu is invoked with <b>Alt+O</b>, and provides the following options:</p><ul><!-- index Projects!Active Project --><li><p><b>Project|Active Project</b><br> Click this menu option to toggle between projects if there is more than one project open. You can also toggle between projects using the Active Project drop-down combobox in the <a href="designer-manual-11.html#2">The File Toolbar Buttons</a>.</p><!-- index Projects!Adding Files --><li><p><b>Project|Add File</b><br> Click this menu option to invoke the <a href="designer-manual-12.html#4-1">Add Dialog</a></p><!-- index Projects!Project Settings --><li><p><b>Project|Project Settings</b><br> Click this menu option to invoke the <a href="designer-manual-12.html#4-4">Project Settings Dialog</a>.</p><!-- index Projects!Image Collection Dialog --><!-- index Image Collection Dialog --><li><p><b>Project|Image Collection</b><br> Click this menu option to invoke the <a href="designer-manual-12.html#4-2">Image Collection Dialog</a>.</p><!-- index Database Connections Dialog --><li><p><b>Project|Database Connections</b><br> Click this menu option to invoke the <a href="designer-manual-12.html#4-3">Edit Database Connections Dialog</a>.</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-searchmenu.png" width="237" height="107"></p><blockquote><p align="center"><em>The Search Menu</em></p></blockquote><h3><a name="5"></a>The Search Menu</h3><p>This menu is invoked with <b>Alt+S</b>, and provides the following options:</p><ul><!-- index Find Text Dialog --><li><p><b>Search|Find</b><br> Click this menu option (or press <b>Ctrl+F</b>) to invoke the <a href="designer-manual-12.html#5-1">Find Text Dialog</a>.</p><!-- index Incremental Search --><!-- index Search, Incremental --><li><p><b>Search|Find Incremental</b><br> Click this menu option (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><!-- index Replace Text Dialog --><li><p><b>Search|Replace</b><br> Click this menu option (or press <b>Ctrl+R</b>) to invoke the <a href="designer-manual-12.html#5-2">Replace Text Dialog</a> to replace specific words or characters.</p><!-- index Goto Line Dialog --><li><p><b>Search|Goto line</b><br> Click this menu option (or press <b>Alt+G</b>) to invoke the <a href="designer-manual-12.html#5-3">Goto Line Dialog</a> to go to a specific line in the file.</p></ul><p>See also <a href="designer-manual-11.html#4">The Search Toolbar Buttons</a>.</p><p align="center"><img align="middle" src="qd-toolsmenu.png" width="239" height="259"></p><blockquote><p align="center"><em>The Tools Menu</em></p></blockquote><h3><a name="6"></a>The Tools Menu</h3><p>This menu is invoked with <b>Alt+T</b>, and provides the following options:</p><ul><!-- index Tools!Pointer --><li><p><b>Tools|Pointer</b><br> Click this menu option (or press <b>F2</b>) to de-select any selected widget toolbar button. The pointer is also used to stop inserting new widgets on the form if you double clicked a widget toolbar button. Press the <b>Esc</b> key to return to the pointer at any time.</p><!-- index Edit Connections Dialog --><li><p><b>Tools|Connect Signals and Slots</b><br> Click this menu option (or press <b>F3</b>) to connect signals and slots. Click on a widget and drag the connection line to the widget (or 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><!-- index Tab Order --><li><p><b>Tools|Tab Order</b><br> Click this menu option (or press <b>F4</b>) to set the tab order for all the widgets on the form that can accept keyboard focus. Choose this option 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><!-- index Tools!Buttons!PushButton --><li><p><b>Tools|Buttons|PushButton</b><br> Click this menu option and then click the form to place a PushButton on the form.</p><!-- index Tools!Buttons!ToolButton --><li><p><b>Tools|Buttons|ToolButton</b><br> Click this menu option and then click the form to place a ToolButton on the form.</p><!-- index Tools!Buttons!RadioButton --><li><p><b>Tools|Buttons|RadioButton</b><br> Click this menu option and 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><!-- index Tools!Buttons!CheckBox --><li><p><b>Tools|Buttons|CheckBox</b><br> Click this menu option and then click the form to place a CheckBox on the form.</p><!-- index Tools!Containers!GroupBox --><li><p><b>Tools|Containers|GroupBox</b><br> Click this menu option and then click the form to place a GroupBox on the form.</p><!-- index Tools!Containers!ButtonGroup --><li><p><b>Tools|Containers|ButtonGroup</b><br> Click this menu option and then click the form to place a ButtonGroup on the form.</p><!-- index Tools!Containers!Frame --><li><p><b>Tools|Containers|Frame</b><br> Click this menu option and then click the form to place a Frame on the form.</p><!-- index Tools!Containers!TabWidget --><li><p><b>Tools|Containers|TabWidget</b><br> Click this menu option and then click the form to place a TabWidget on the form. To add or remove tabs, right click the tab widget and choose 'Add Page' or 'Remove Page'.</p><!-- index Tools!Views!ListBox --><li><p><b>Tools|Views|ListBox</b><br> Click this menu option and then click the form to place a ListBox on the form.</p><!-- index Tools!Views!ListView --><li><p><b>Tools|Views|ListView</b><br> Click this menu option and then click the form to place a ListView on the form.</p><!-- index Tools!Views!Icon View --><li><p><b>Tools|Views|Icon View</b><br> Click this menu option and then click the form to place an IconView on the form.</p><!-- index Tools!Views!Table --><li><p><b>Tools|Views|Table</b><br> Click this menu option and then click the form to place a Table on the form.</p><!-- index Tools!Views!Table --><li><p><b>Tools|Database|DataTable</b><br> Click this menu option and then click the form to place a DataTable on the form.</p><!-- index Tools!Database!DataBrowser --><li><p><b>Tools|Database|DataBrowser</b><br> Click this menu option and then click the form to place a DataBrowser on the form.</p><!-- index Tools!Database!DataView --><li><p><b>Tools|Database|DataView</b><br> Click this menu option and then click the form to place a DataView on the form.</p><!-- index Tools!Input!LineEdit --><li><p><b>Tools|Input|LineEdit</b><br> Click this menu option and then click the form to place a LineEdit on the form.</p><!-- index Tools!Input!SpinBox --><li><p><b>Tools|Input|SpinBox</b><br> Click this menu option and then click the form to place a SpinBox on the form.</p><!-- index Tools!Input!DateEdit --><li><p><b>Tools|Input|DateEdit</b><br> Click this menu option and then click the form to place a DateEdit on the form.</p><!-- index Tools!Input!TimeEdit --><li><p><b>Tools|Input|TimeEdit</b><br> Click this menu option and then click the form to place a TimeEdit on the form.</p><!-- index Tools!Input!DateTimeEdit --><li><p><b>Tools|Input|DateTimeEdit</b><br> Click this menu option and then click the form to place a DateTimeEdit on the form.</p><!-- index Tools!Input!TextEdit --><li><p><b>Tools|Input|TextEdit</b><br> Click this menu option and then click the form to place a TextEdit on the form.</p><!-- index Tools!Input!ComboBox --><li><p><b>Tools|Input|ComboBox</b><br> Click this menu option and then click the form to place a ComboBox on the form.</p><!-- index Tools!Input!Slider --><li><p><b>Tools|Input|Slider</b><br> Click this menu option and then click the form to place a Slider on the form.</p><!-- index Tools!Input!ScrollBar --><li><p><b>Tools|Input|ScrollBar</b><br> Click this menu option and then click the form to place a Scrollbar on the form.</p><!-- index Tools!Input!Dial --><li><p><b>Tools|Input|Dial</b><br> Click this menu option and then click the form to place a Dial on the form.</p><!-- index Tools!Display!TextLabel --><li><p><b>Tools|Display|TextLabel</b><br> Click this menu option and then click the form to place a TextLabel on the form.</p><!-- index Tools!Display!PixmapLabel --><li><p><b>Tools|Display|PixmapLabel</b><br> Click this menu option and then click the form to place a PixmapLabel on the form.</p><!-- index Tools!Display!LCDNumber --><li><p><b>Tools|Display|LCDNumber</b><br> Click this menu option and then click the form to place a LCDNumber on the form.</p><!-- index Tools!Display!Line --><li><p><b>Tools|Display|Line</b><br> Click this menu option and then click the form to place a Line on the form.</p><!-- index Tools!Display!ProgressBar --><li><p><b>Tools|Display|ProgressBar</b><br> Click this menu option and then click the form to place a ProgressBar on the form.</p><!-- index Tools!Display!TextBrowser --><li><p><b>Tools|Display|TextBrowser</b><br> Click this menu option and then click the form to place a TextBrowser on the form.</p><!-- index Edit Custom Widgets Dialog --><li><p><b>Tools|Custom|Edit Custom Widgets</b><br> Click this menu option to invoke the <a href="designer-manual-12.html#14">Edit Custom Widgets Dialog</a>.</p><li><p><b>Tools|Custom|<My Custom Widget></b><br> Click this menu option and then click the form to place the Custom Widget on the form. Note that this menu option only appears if you have created a widget using <b>Tools|Custom|Edit Custom Widgets</b>.</p></ul><p>See also <a href="designer-manual-11.html#5">The Tools Toolbar Buttons</a>.</p><p align="center"><img align="middle" src="qd-layoutmenu1.png" width="320" height="216"></p><blockquote><p align="center"><em>The Layout Menu</em></p></blockquote><h3><a name="7"></a>The Layout Menu</h3><!-- index Layouts --><p>This menu is invoked with <b>Alt+L</b>, and provides the following options:</p><ul><!-- index Layouts!Adjust Size --><li><p><b>Layout|Adjust Size</b><br> Click this menu option (or press <b>Ctrl+J</b>) to adjust the size of the widget to it's recommended size.</p><!-- index Layouts!Horizontal --><li><p><b>Layout|Lay Out Horizontally</b><br> Click this menu option (or press <b>Ctrl+H</b>) to lay out the selected widgets or layouts side by side. Use <b>Shift+Click</b> to select each widget or layout, and then choose this menu option to group them horizontally. Note that for complex widgets it is sometimes easiest to select widgets and layouts by clicking them in the Widgets tab of the <a href="designer-manual-14.html#3">Object Explorer Window</a>. If only one widget is selected, its child widgets will be laid out horizontally.</p><!-- index Layouts!Vertical --><li><p><b>Layout|Lay Out Vertically</b><br> Click this menu option (or press <b>Ctrl+L</b>) to lay out the selected widgets one above the other. Use <b>Shift+Click</b> to select each widget or layout, and then choose this menu option to group them vertically. Note that for complex widgets it is sometimes easiest to select widgets and layouts by clicking them in the Widgets tab of the <a href="designer-manual-14.html#3">Object Explorer Window</a>. If only one widget is selected, its child widgets will be laid out vertically.</p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -