Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
[Prev: The Key Bindings] [Home] [Next: Toolbar Buttons]
Qt Designer provides menu options that perform the actions that are needed to create applications. Most menu options have additional options such as dialog boxes that provide more specific functionality. In addition, many menu options also have corresponding toolbar buttons. This chapter of the reference manual will define each menu option and it's use. For each menu option that invokes dialog boxes or has corresponding toolbar buttons, click the link to go to the appropriate section within the reference manual which will explain the dialogs and buttons in detail.
The File Menu
This menu is invoked with Alt+F, and provides the following options:
File|New Click this menu option (or press Ctrl+N) to create a new project, form or file. This option invokes the The New File Dialog.
File|Open Click this menu option (or pressCtrl+O) to open existing projects, forms or files. The Open Dialog appears and the file name and type must be selected.
File|Close Click this menu option to close the project that is currently open. If changes are made to the project and it has not been saved previously, the Save Form Dialog appears.
File|Save Click this menu option (or press Ctrl+S) to save the project, forms, and files. For a new project with no forms or files added to it, click 'Save' to save the project before exiting. For new forms, click 'Save' and the Save As Dialog appears. For forms that have been saved previously click 'Save'. For new files or for files that have been changed, click 'Save'.
File|Save As Click this menu option to save and name the project. This option invokes the Save As Dialog.
File|Save All Click this menu option to save every open file and form in every open project.
File|Create Template Click this menu option to create a form template. This option invokes the Create Template dialog.
File|Recently Opened Files 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 File Overview Window.
File|Recently Opened Projects Click this menu option to list the most recently opened projects. Click one of the projects listed to open it.
File|Exit Click this menu option to exit Qt Designer. If any open files have unsaved changes, the Save Form message box will appear for each of them, before Qt Designer exits. Note that if any open projects have any files that begin with the word 'unnamed', the Save Form As dialog will appear for each of these files. If any open project's name begins with the word 'unnamed' the Save Project Settings message box appears.
See also the The File Toolbar buttons.
This menu is invoked with Alt+E, and provides the following options:
Edit|Undo Click this menu option (or press Ctrl+Z) to undo an action. The name of the last action that was performed appears after the word 'Undo'.
Edit|Redo Click this menu option (or press Ctrl+Y) to redo an action.The name of the last action that was performed appears after the word 'Redo'.
Edit|Cut Click this menu option (or press Ctrl+X) to delete the selected item from the current form or file and copy it to the clipboard.
Edit|Copy Click this menu option (or press Ctrl+C) to copy the selected item from the current form or file to the clipboard.
Edit|Paste Click this menu option (or press Ctrl+V) to paste the selected item from the clipboard into the current form or file.
Edit|Delete Click this menu option (or press Del) to delete the selected item from the current form or file.
Edit|Select All Click this menu option (or press Ctrl+A) to highlight all the widgets on the current form or all the text in the current file.
Edit|Check Accelerator Click this menu option (or press Alt+R) 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', where 'X' is the accelerator and 'y' is the number of times it is used. Click 'Select' to highlight the widgets with the same accelerator, or click 'Cancel' to exit the message box without any action.
Edit|Slots Click this menu option to edit or create slots.This option invokes the Edit Slots Dialog.
Edit|Connections Click this menu option to invoke the View Connections Dialog.
Edit|Form Settings Click this menu option to invoke the Form Settings Dialog.
Edit|Preferences Click this menu option to invoke the Preferences Dialog.
See also the The Edit Toolbar Buttons.
This menu is invoked with Alt+O, and provides the following options:
Project|Active Project|
Project|Add File Click this menu option to invoke the Add Dialog
Project|Project Settings Click this menu option to invoke the Project Settings Dialog.
Project|Image Collection Click this menu option to invoke the Edit Image Collection Dialog.
Project|Database Connections Click this menu option to invoke the Edit Database Connections Dialog.
See also the The Project Toolbar buttons.
This menu is invoked with Alt+S, and provides the following options:
Search|Find Click this menu option (or press Ctrl+F) to invoke the Find Text Dialog.
Search|Find Incremental Click this menu option (or press Alt+I) to place the cursor in the text box located next to the Find toolbar button. Type characters into the text box; as you type Qt Designer will highlight the first occurrence of the text that it finds in the file. Press the Enter key to go to the next occurrence of the text.
Search|Replace Click this menu option (or press Ctrl+R) to invoke the Replace Text Dialog to replace specific words or characters.
Search|Goto line Click this menu option (or press Alt+G) to invoke the Goto Line Dialog to go to a specific line in the file.
See also the The Search Toolbar Buttons.
This menu is invoked with Alt+T, and provides the following options:
Tools|Pointer Click this menu option (or press F2) to deselect 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.
Tools|Connect Signals and Slots Click this toolbar button (or press F3) to connect signals and slots. Click on a widget and drag the pink rubber band to the widget (or form) that you want to connect to. Release the mouse button and the Edit Connections Dialog will appear.
Tools|Tab Order Click this menu option (or press F4) 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.
Tools|Buttons|PushButton Click this option and then click the form to place a Pushbutton on the form.
Tools|Buttons|ToolButton Click this option and then click the form to place a Toolbutton on the form.
Tools|Buttons|RadioButton Click this option and then click the form to place a Radiobutton on the form.
Tools|Buttons|CheckBox Click this option and then click the form to place a CheckBox on the form.
Tools|Containers|GroupBox Click this option and then click the form to place a Groupbox on the form.
Tools|Containers|ButtonGroup Click this option and then click the form to place a ButtonGroup on the form.
Tools|Containers|Frame Click this option and then click the form to place a Frame on the form.
Tools|Containers|TabWidget Click this option and then click the form to place a TabWidget on the form.
Tools|Views|ListBox Click this option and then click the form to place a ListBox on the form.
Tools|Views|ListView Click this option and then click the form to place a ListView on the form.
Tools|Views|Icon View Click this option and then click the form to place an Icon on the form.
Tools|Views|Table Click this option and then click the form to place a Table on the form.
Tools|Database|DataTable Click this option and then click the form to place a DataTable on the form.
Tools|Database|DataBrowser Click this option and then click the form to place a DataBrowser on the form.
Tools|Database|DataView Click this option and then click the form to place a DataView on the form.
Tools|Input|LineEdit Click this option and then click the form to place a LineEdit on the form.
Tools|Input|SpinBox Click this option and then click the form to place a SpinBox on the form.
Tools|Input|DateEdit Click this option and then click the form to place a DateEdit on the form.
Tools|Input|TimeEdit Click this option and then click the form to place a TimeEdit on the form.
Tools|Input|DateTimeEdit Click this option and then click the form to place a DateTimeEdit on the form.
Tools|Input|TextEdit Click this option and then click the form to place a TextEdit on the form.
Tools|Input|ComboBox Click this option and then click the form to place a ComboBox on the form.
Tools|Input|Slider Click this option and then click the form to place a Slider on the form.
Tools|Input|ScrollBar Click this option and then click the form to place a Scrollbar on the form.
Tools|Input|Dial Click this option and then click the form to place a Dial on the form.
Tools|Display|TextLabel Click this option and then click the form to place a TextLabel on the form.
Tools|Display|PixmapLabel Click this option and then click the form to place a PixmapLabel on the form.
Tools|Display|LCDNumber Click this option and then click the form to place a LCDNumber on the form.
Tools|Display|Line Click this option and then click the form to place a Line on the form.
Tools|Display|ProgressBar Click this option and then click the form to place a ProgressBar on the form.
Tools|Display|TextBrowser Click this option and then click the form to place a TextBrowser on the form.
Tools|Custom|Edit Custom Widgets Click this menu option to invoke the Edit Custom Widget Dialog.
Tools|Custom|My Custom Widget Click this option and then click the form to place the Custom Widget on the form. Note:This menu option appears if you have created a widget using Tools|Custom|Edit Custom Widgets.
See also the The Tools Toolbar Buttons.
This menu is invoked with Alt+L, and provides the following options:
Layout|Adjust Size Click this menu option (or press Ctrl+J) to adjust the size of the widget to it's recommended size.
Layout|Lay Out Horizontally Click this menu option (or press Ctrl+H) to lay out the selected widgets or layouts side by side. Use Shift+Click 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 Object Explorer window.
Layout|Lay Out Vertically Click this menu option (or press Ctrl+L) to lay out the selected widgets one above the other. Use Shift+Click 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 Object Explorer window.
Layout|Lay Out in a Grid Click this menu option (or press Ctrl+G) to lay out selected widgets in a grid. If only one widget is selected, it's child-widgets will be laid out in a grid.
Layout|Lay Out Horizontally (in Splitter) Click this menu option to lay out the selected widgets or layouts side by side with a splitter between each widget. Use Shift+Click 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 Object Explorer window.
Layout|Lay Out Vertically (in Splitter) Click this menu option to lay out the selected widgets or layouts one above the other with a splitter between each widget or layout. Use Shift+Click 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 Object Explorer window.
Layout|Break Layout Click this menu option (or press Ctrl+B) to break apart layouts that have been created. Click on the layout and select this option; the layouts are then seperated.
Layout|Add Spacer Click this menu option to add a vertical or horizontal spacer to widgets that take up too much space on the form. The spacer consumes extra space in the layout.
See also the The Layout Toolbar Buttons.
This menu is invoked with Alt+P, and provides the following options:
Preview|Preview Form Click this menu option (or press Ctrl+T) to preview the form within designer.
Preview|...in Windows Style Click this menu option to preview the form in Windows style.
Preview|...in Motif Style Click this menu option to preview the form in Motif style.
Preview|...in CDE Style Click this menu option to preview the form in CDE style.
Preview|...in MotifPlus Style Click this menu option to preview the form in MotifPlus style.
Preview|...in Platinum Style Click this menu option to preview the form in Platinum style.
Preview|...in SGI Style Click this menu option to preview the form in SGI style.
This menu is invoked with Alt+W, and provides the following options:
Window|Close Click this menu option (or press Ctrl+F4) to close the window that is currently active.
Window|Close All Click this menu option to close all the windows that are currently open.
Window|Next Click this menu option (or press Ctrl+F6) to view each window in the order in which they were opened, continuing on to the next window that was opened.
Window|Previous Click this menu option (or press Ctrl+Shift+F6) to view each window in reverse order from last window that you opened.
Window|Tile Click this menu option to arrange allthe open files and forms side by side so that each window is visible. This option provides a way to organize the windows so that each open window is equally visible and easier to view.
Window|Cascade Click this menu option to stack all the open file and forms, one on top of the other. This option provides an easier way to organize and view all the windows that are opened.
Window|Views|Output Window Click this menu option to invoke the Output Window, which provides features used for debugging code.
Window|Views|File Overview Click this menu option to make the File Overview window visible or to hide the window if you do not want it to be visible.
Window|Views|Property Editors/Signal Handlers Click this menu option to make the Property Editors/Signal Handlers window visible or to hide the window if you do not want it to be visible.
Window|Views|Object Explorer Click this menu option to make the Object Explorer window visible or to hide the window if you do not want it to be visible.
Window|Views|Line Up Click this menu option to eliminate extra space between toolbars and line them up next to each other all at once, rather than moving each individual toolbar into place.
Window|Toolbars|File Click this menu option to make the File toolbar buttons visible or to hide the toolbar buttons if you do not want them to be visible. If the toolbar buttons are currently visible, a check mark will appear next to the name in the menu.
Window|Toolbars|Edit Click this menu option to make the Edit toolbar buttons visible or to hide the toolbar buttons if you do not want them to be visible. If the toolbar buttons are currently visible, a check mark will appear next to the name in the menu.
Window|Toolbars|Search Click this menu option to make the Search toolbar buttons visible or to hide the toolbar buttons if you do not want them to be visible. If the toolbar buttons are currently visible, a check mark will appear next to the name in the menu.
Window|Toolbars|Layout Click this menu option to make the Layout toolbar buttons visible or to hide the toolbar buttons if you do not want them to be visible. If the toolbar buttons are currently visible, a check mark will appear next to the name in the menu.
Window|Toolbars|Tools Click this menu option to make the Tools toolbar buttons visible or to hide the toolbar buttons if you do not want them to be visible. If the toolbar buttons are currently visible, a check mark will appear next to the name in the menu.
Window|Toolbars|Buttons Click this menu option to make the Buttons toolbar buttons visible or to hide the toolbar buttons if you do not want them to be visible. If the toolbar buttons are currently visible, a check mark will appear next to the name in the menu.
Window|Toolbars|Containers Click this menu option to make the Containers toolbar buttons visible or to hide the toolbar buttons if you do not want them to be visible. If the toolbar buttons are currently visible, a check mark will appear next to the name in the menu.
Window|Toolbars|Views Click this menu option to make the Views toolbar buttons visible or to hide the toolbar buttons if you do not want them to be visible. If the toolbar buttons are currently visible, a check mark will appear next to the name in the menu.
Window|Toolbars|Database Click this menu option to make the Database toolbar buttons visible or to hide the toolbar buttons if you do not want them to be visible. If the toolbar buttons are currently visible, a check mark will appear next to the name in the menu.
Window|Toolbars|InputClick this menu option to make the Input toolbar buttons visible or to hide the toolbar buttons if you do not want them to be visible. If the toolbar buttons are currently visible, a check mark will appear next to the name in the menu.
Window|Toolbars|Display Click this menu option to make the Display toolbar buttons visible or to hide the toolbar buttons if you do not want them to be visible. If the toolbar buttons are currently visible, a check mark will appear next to the name in the menu.
Window|Toolbars|Custom Click this menu option to make the Custom toolbar buttons visible or to hide the toolbar buttons if you do not want them to be visible. If the toolbar buttons are currently visible, a check mark will appear next to the name in the menu.
Window|Toolbars|Help Click this menu option to make the Help toolbar buttons visible or to hide the toolbar buttons if you do not want them to be visible. If the toolbar buttons are currently visible, a check mark will appear next to the name in the menu.
Window|Toolbars|Line Up Click this menu option to eliminate extra space between toolbars and line them up next to each other all at once, rather than moving each individual toolbar into place.
Window|
This menu is invoked with Alt+H, and provides the following options:
Help|Contents Click this menu option (or press F1) to invoke the Qt Assistant by Trolltech Dialog which provides online help.
Help|Manual Click this menu option (or press Ctrl+M) to invoke the Qt Assistant by Trolltech Dialog which opens Qt Designer online manual.
Help|About... Click this menu option to invoke the Qt Designer dialog, which provides information about Qt Designer.
Help|About Qt... Click this menu option to invoke the Qt Designer dialog which provides information about Qt.
Help|What's This? Click this menu option to invoke a small question mark that is linked to the pointer. Click the pointer on a feature which you would like more information about. A message box appears with information about the feature.
See also the The Help Toolbar buttons.
[Prev: The Key Bindings] [Home] [Next: Toolbar Buttons]
Copyright © 2001 Trolltech | Trademarks | Qt version 3.0.0-beta5
|