Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QToolBar class provides a movable panel that contains a set of controls. More...
#include <QToolBar>
Inherits QFrame.
The QToolBar class provides a movable panel that contains a set of controls.
Toolbar buttons are added by adding actions, using addAction() or insertAction(). Groups of buttons can be separated using addSeparator() or insertSeparator(). If a toolbar button is not appropriate, a widget can be inserted instead using addWidget() or insertWidget(); examples of suitable widgets are QSpinBox, QDoubleSpinBox, and QComboBox. When a toolbar button is pressed it emits the actionTriggered() signal. Toolbars may only be added to QMainWindow and QMainWindow subclasses.
A toolbar can be fixed in place in a particular area() (e.g. at the top of the window), or it can be movable() between toolbar areas, or it can be floatable: see allowedAreas and isDockable().
This property holds areas where the tool bar may be placed.
The default is Qt::AllToolBarAreas.
Access functions:
This property holds area where the tool bar is currently placed.
The default is Qt::ToolBarAreaTop.
Access functions:
This property holds whether the user can move the tool bar either within the tool bar area or to another tool bar area.
This property is true by default.
Access functions:
See also QToolBar::allowedAreas.
Constructs a QToolBar with the given parent.
Destroys the tool bar.
Returns the action at the point x, y. This function returns zero if no action was found.
See also QWidget::childAt().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Returns the action at point p.
This signal is emitted when a tool bar button is pressed. The parameter holds the tool bar button's associated action.
Adds action to the end of the tool bar.
See also addAction().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Creates a new action with text text. This action is added to the end of the tool bar.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Creates a new action with the icon icon and text text. This action is added to the end of the tool bar.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Creates a new action with text text. This action is added to the end of the tool bar. The action's triggered() signal is connected to member in receiver.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Creates a new action with the icon icon and text text. This action is added to the end of the tool bar. The action's triggered() signal is connected to member in receiver.
Adds a separator to the end of the toolbar.
See also insertSeparator().
Adds the given widget to the tool bar as the tool bar's last item.
See also insertWidget().
Removes all actions from the tool bar.
See also removeAction().
Inserts the given action into the tool bar in front of the tool bar item associated with the before action.
See also addAction().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Creates a new action with the given text. This action is inserted into the tool bar in front of the tool bar item associated with the before action.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Creates a new action with the given icon and text. This action is inserted into the tool bar in front of the tool bar item associated with the before action.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Creates a new action with the given text. This action is inserted into the tool bar in front of the tool bar item associated with the before action. The action's triggered() signal is connected to the member in receiver.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Creates a new action with the given icon and text. This action is inserted into the tool bar in front of the tool bar item associated with the before action. The action's triggered() signal is connected to the member in the receiver.
Inserts a separator into the tool bar in front of the tool bar item associated with the before action.
See also addSeparator().
Inserts the given widget in front of the tool bar item associated with the before action.
See also addWidget().
Returns true if this tool bar is dockable in the given area; otherwise returns false.
Returns the main window for the tool bar.
See also setParent().
Sets the main window for the tool bar to parent.
See also mainWindow().
Copyright © 2004 Trolltech. | Trademarks | Qt 4.0.0-tp1 |