designer-manual-12.html

来自「QT 下载资料仅供参考」· HTML 代码 · 共 416 行 · 第 1/5 页

HTML
416
字号
<a name="dialog-dialog-page-title"></a><h3><a name="23"></a>Page Title Dialog</h3><p>Right click a tab widget on the form and select <b>Edit Page Title</b> to invoke the <em>Page Title</em> dialog. Use this dialog to change the name of each tab in the Tab widget.</p><p>Click <b>OK</b> to accept new page titles. Click <b>Cancel</b> to leave the dialog without making any changes.</p><p align="center"><img align="middle" src="qd-editlistbox.png" width="469" height="222"></p><blockquote><p align="center"><em>Edit Listbox</em></p></blockquote><a name="dialog-edit-listbox"></a><h3><a name="24"></a>Edit Listbox Dialog</h3><p>Right click or double click a Listbox on the form and select 'Edit' to invoke the <em>Edit Listbox</em> dialog. Use this dialog to add items to the list box and to change the item's properties.</p><p>To add an item to the listbox, click the <b>New Item</b>. If you want to change the default name of the item, click the 'Text' line edit in the 'Item Properties' section and type a new name for the item. Click the <b>Select a Pixmap</b> to invoke the <em>Choose an Image Dialog</em>. Click a pixmap and then click the <b>Delete Pixmap</b> button to delete the selected pixmap. To delete an item from the listbox, click the item and then click the <b>Delete</b> button. To move an item up or down in the listbox, click the <b>Move Up</b> or <b>Move Down</b> buttons. Click <b>Apply</b> to accept the changes.</p><p>Click <b>Apply</b> to accept changes to the listbox widget. Click <b>OK</b> to leave the dialog once the changes have been accepted. Click <b>Cancel</b> to leave the dialog without saving any changes.</p><a name="dialog-edit-listview"></a><h3><a name="25"></a>Edit Listview</h3><p>Right click or double click a listview widget on the form and select 'Edit' to invoke the <em>Edit Listview</em> dialog. Use this dialog to add items to the listview. The <em>Edit</em> Listview dialog has two tabs, one for items and one for columns.</p><p align="center"><img align="middle" src="qd-editlistview.png" width="607" height="378"></p><blockquote><p align="center"><em>Edit Listview- Items Tab</em></p></blockquote><h4><a name="25-1"></a>The Items Tab</h4><p>The dialog defaults to the Items tab. Use this tab to add, change, or remove items in the listview. To add a new item, click the <b>New Item</b> button. The new item is shown at the top of the listbox. To add sub-items to an existing item, click the item and then click the <b>New Subitem</b> button. Click the 'Column' spinbox to choose a column for which the item text or pixmap will be placed. Click the 'Text' line edit to type text for a column, or to change the name of an item or subitem. Click a pixmap and then click the <b>Delete Pixmap</b> button to delete the selected pixmap. To delete an item from the listbox, click the item and then click the <b>Delete</b> button. To move an item up or down within the hierarchy level, click the <b>Move Up</b> or <b>Move Down</b> buttons. To move an item up or down one level, click the <b>Move Left</b> or <b>Move Right</b> buttons.</p><p align="center"><img align="middle" src="qd-editlistviewcolumns.png" width="607" height="378"></p><blockquote><p align="center"><em>Edit Listview- Columns Tab</em></p></blockquote><h4><a name="25-2"></a>The Columns Tab</h4><p>Click this tab to change the column configuration of the listview. To add a column, click the <b>New Column</b> button. The new column is shown at the top of the listbox. To change the column name, click a column in the listbox and then click the 'Text' line edit and type a new name. To add a pixmap, click the <b>(ellipsis)</b> button, which invokes the <em>Choose an Image Dialog</em>. To remove a pixmap, click the <b>Delete Pixmap</b> button. Click the 'Clickable' checkbox if you want the columns to respond to mouse clicks. Click the 'Resizeable' checkbox if you want to be able to change the column's width. To remove a column, click the column in the listbox and then click the <b>Delete Column</b> button. To move a column up or down in the listbox, click the <b>Move Up</b> or the <b>Move Down</b> buttons.</p><p>Click <b>Apply</b> to accept changes to the listview widget. Click <b>OK</b> to leave the dialog once the changes have been accepted. Click <b>Cancel</b> to leave the dialog without saving any changes.</p><p align="center"><img align="middle" src="qd-editiconview.png" width="575" height="347"></p><blockquote><p align="center"><em>Edit Iconview</em></p></blockquote><a name="dialog-edit-iconview"></a><h3><a name="26"></a>Edit Iconview</h3><p>Right click or double click an iconview widget on the form and select 'Edit' to invoke the <em>Edit Iconview</em> dialog. Use the dialog to add, change, or remove items from the iconview. To add an item to the iconview, click the <b>New Item</b> button. To change the name of the item, click the 'Text' line edit and type a new name. To add a pixmap, click the <b>(ellipsis)</b> button, which invokes the <em>Choose an Image Dialog</em>. To remove a pixmap, click the <b>Delete Pixmap</b> button. To delete an item from the iconview, click the item and then click the <b>Delete Item</b> button.</p><p>Click <b>Apply</b> to accept changes to the iconview widget. Click <b>OK</b> to leave the dialog once the changes have been accepted. Click <b>Cancel</b> to leave the dialog without saving any changes.</p><a name="dialog-edit-table"></a><h3><a name="27"></a>Edit Table</h3><p>Right click or double click a table widget on the form and select 'Edit' to invoke the <em>Edit Table</em> dialog. Use the dialog to add, change, or remove columns or rows from the table.</p><p align="center"><img align="middle" src="qd-edittablecolumns.png" width="546" height="395"></p><blockquote><p align="center"><em>Edit Table- Columns Tab</em></p></blockquote><h4><a name="27-1"></a>The Column Tab</h4><p>To add a column to the table, click the <b>New Column</b> button. To delete a column from the table, click the column you want to delete from the table, or click the column number in the 'Columns' listbox and then click the <b>Delete Column</b> button. To change a column name, click the 'Label' line edit and type the new text. To add a pixmap, click the <b>(ellipsis)</b> button, which invokes the <em>Choose an Image Dialog</em>. To remove a pixmap from the current column of the selected item, click the <b>Delete Pixmap</b> button. To move a column in the listbox, click the <b>Move Up</b> or <b>Move Down</b> buttons.</p><p align="center"><img align="middle" src="qd-edittablerows.png" width="546" height="395"></p><blockquote><p align="center"><em>Edit Table- Rows Tab</em></p></blockquote><h4><a name="27-2"></a>The Rows Tab</h4><p>To add a row to the table, click the <b>New Row</b> button. To delete a row from the table, click the row you want to delete from the table, or click the row number in the 'Rows' listbox and then click the <b>Delete Column</b> button. To change a row's name, click the row, or the row number, and then click the 'Label' line edit and type the new text. To add a pixmap, click the <b>(ellipsis)</b> button, which invokes the <em>Choose an Image Dialog</em>. To remove a pixmap from the current row of the selected item, click the <b>Delete Pixmap</b> button. To move a row in the listbox, click the <b>Move Up</b> or <b>Move Down</b> buttons.</p><p>Click <b>Apply</b> to accept changes to the table widget. Click <b>OK</b> to leave the dialog once the changes have been accepted. Click <b>Cancel</b> to leave the dialog without saving any changes.</p><p align="center"><img align="middle" src="qd-editforwarddeclarations.png" width="339" height="327"></p><blockquote><p align="center"><em>Edit Forward Declarations</em></p></blockquote><a name="dialog-edit-forward-declarations"></a><h3><a name="28"></a>Edit Forward Declarations Dialog</h3><p>From the Source tab in the <a href="designer-manual-14.html#3">Object Explorer Window</a>, right click the 'Forward Declarations' folder and select 'Edit' from the context menu to invoke the <em>Edit Forward Declarations</em> dialog. Use this dialog to add, edit, or remove declarations in the source code.</p><p>To add a new declaration, click the <b>Add</b> button. A line edit will appear for you to type the declaration. Press <b>Enter</b> after you have typed the declaration. To delete a declaration from the listbox, click the declaration and then click <b>Remove</b>. To rename an existing declaration, click the declaration and then click <b>Rename</b>. The cursor will appear in the line edit, allowing you to change the name.</p><p>Click <b>Close</b> to leave the <em>Edit Forward Declarations</em> dialog.</p><p align="center"><img align="middle" src="qd-editincludesindeclaration.png" width="339" height="327"></p><blockquote><p align="center"><em>Edit Includes (in Declaration)</em></p></blockquote><a name="dialog-edit-includes-in-declaration"></a><h3><a name="29"></a>Edit Includes (in Declaration) Dialog</h3><p>From the Source tab in the <a href="designer-manual-14.html#3">Object Explorer Window</a>, right click the 'Includes (in Declaration)' folder and select 'Edit' from the context menu to invoke the <em>Edit Includes (in Declarations)</em> dialog. Use this dialog to add, edit, or remove includes in the source code.</p><p>To add a new include, click the <b>Add</b> button. A line edit will appear for you to type the include. Press <b>Enter</b> after you have typed the include. To delete an include from the listbox, click the include and then click <b>Remove</b>. To rename an existing include, click the include and then click <b>Rename</b>. The cursor will appear in the line edit, allowing you to change the name.</p><p>Click <b>Close</b> to leave the <em>Edit Include (in Declaration)</em> dialog.</p><p align="center"><img align="middle" src="qd-editincludesinimplementation.png" width="339" height="327"></p><blockquote><p align="center"><em>Edit Includes (in Implementation)</em></p></blockquote><a name="dialog-edit-includes-in-implementation"></a><h3><a name="30"></a>Edit Includes (in Implementation) Dialog</h3><p>From the Source tab in the <a href="designer-manual-14.html#3">Object Explorer Window</a>, right click the 'Includes (in Implementation)' folder and select 'Edit' from the context menu to invoke the <em>Edit Includes (in Implementation)</em> dialog. Use this dialog to add, edit, or remove includes in the source code.</p><p>To add a new include, click the <b>Add</b> button. A line edit will appear for you to type the include. Press <b>Enter</b> after you have typed the include. To delete an include from the listbox, click the include and then click <b>Remove</b>. To rename an existing include, click the include and then click <b>Rename</b>. The cursor will appear in the line edit, allowing you to change the name.</p><p>Click <b>Close</b> to leave the <em>Edit Include (in Implementation)</em> dialog.</p><p align="center"><img align="middle" src="qd-editclassvariables.png" width="339" height="327"></p><blockquote><p align="center"><em>Edit Class Variables</em></p></blockquote><a name="dialog-edit-class-variables"></a><h3><a name="31"></a>Edit Class Variables Dialog</h3><p>From the Source tab in the <a href="designer-manual-14.html#3">Object Explorer Window</a>, right click the 'Class Variables' folder and select 'Edit' from the context menu to invoke the <em>Edit Class Variables</em> dialog. Use this dialog to add, edit, or remove class variables in the source code.</p><p>To add a new variable, click the <b>Add</b> button. A line edit will appear for you to type the variable. Press enter after you have typed the variable. To delete an include from the listbox, click the variable and then click <b>Remove</b>. To rename an existing variable, click the variable and then click <b>Rename</b>. The cursor will appear in the line edit, allowing you to change the name.</p><p>Click <b>Close</b> to leave the <em>Edit Class Variables</em> dialog.</p><!-- eof --><p align="right">[<a href="designer-manual-11.html">Prev: Reference: Toolbar Buttons</a>] [<a href="designer-manual.html">Home</a>] [<a href="designer-manual-13.html">Next: Reference: Wizards</a>]</p><p><address><hr><div align=center><table width=100% cellspacing=0 border=0><tr><td>Copyright &copy; 2002 <a href="http://www.trolltech.com">Trolltech</a><td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align=right><div align=right>Qt version 3.0.5</div></table></div></address></body></html>

⌨️ 快捷键说明

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