Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2404

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QToolButton" doc="/**
&lt;p&gt;The &lt;a href=&quot;QToolButton.html#QToolButton(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt; class provides a quick-access button to commands or options, usually used inside a &lt;a href=&quot;QToolBar.html&quot;&gt;&lt;tt&gt;QToolBar&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A tool button is a special button that provides quick-access to specific commands or options. As opposed to a normal command button, a tool button usually doesn't show a text label, but shows an icon instead.&lt;/p&gt;
&lt;p&gt;Tool buttons are normally created when new &lt;a href=&quot;QAction.html&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt; instances are created with QToolBar::addAction() or existing actions are added to a toolbar with QToolBar::addAction(). It is also possible to construct tool buttons in the same way as any other widget, and arrange them alongside other widgets in layouts.&lt;/p&gt;
&lt;p&gt;One classic use of a tool button is to select tools; for example, the &amp;quot;pen&amp;quot; tool in a drawing program. This would be implemented by using a &lt;a href=&quot;QToolButton.html#QToolButton(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt; as a toggle button (see setToggleButton()).&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QToolButton.html#QToolButton(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt; supports auto-raising. In auto-raise mode, the button draws a 3D frame only when the mouse points at it. The feature is automatically turned on when a button is used inside a &lt;a href=&quot;QToolBar.html&quot;&gt;&lt;tt&gt;QToolBar&lt;/tt&gt;&lt;/a&gt;. Change it with &lt;a href=&quot;QToolButton.html#setAutoRaise(boolean)&quot;&gt;&lt;tt&gt;setAutoRaise&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A tool button's icon is set as &lt;a href=&quot;QIcon.html&quot;&gt;&lt;tt&gt;QIcon&lt;/tt&gt;&lt;/a&gt;. This makes it possible to specify different pixmaps for the disabled and active state. The disabled pixmap is used when the button's functionality is not available. The active pixmap is displayed when the button is auto-raised because the mouse pointer is hovering over it.&lt;/p&gt;
&lt;p&gt;The button's look and dimension is adjustable with &lt;a href=&quot;QToolButton.html#setToolButtonStyle(com.trolltech.qt.core.Qt.ToolButtonStyle)&quot;&gt;&lt;tt&gt;setToolButtonStyle&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QAbstractButton.html#setIconSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setIconSize&lt;/tt&gt;&lt;/a&gt;. When used inside a &lt;a href=&quot;QToolBar.html&quot;&gt;&lt;tt&gt;QToolBar&lt;/tt&gt;&lt;/a&gt; in a &lt;a href=&quot;QMainWindow.html&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt;, the button automatically adjusts to &lt;a href=&quot;QMainWindow.html&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt;'s settings (see QMainWindow::setToolButtonStyle() and QMainWindow::setIconSize()). Instead of an icon, a tool button can also display an arrow symbol, specified with &lt;a href=&quot;QToolButton.html#arrowType()&quot;&gt;&lt;tt&gt;arrowType&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A tool button can offer additional choices in a popup menu. The popup menu can be set using &lt;a href=&quot;QToolButton.html#setMenu(com.trolltech.qt.gui.QMenu)&quot;&gt;&lt;tt&gt;setMenu&lt;/tt&gt;&lt;/a&gt;. Use &lt;a href=&quot;QToolButton.html#setPopupMode(com.trolltech.qt.gui.QToolButton.ToolButtonPopupMode)&quot;&gt;&lt;tt&gt;setPopupMode&lt;/tt&gt;&lt;/a&gt; to configure the different modes available for tool buttons with a menu set. The default mode is DelayedPopupMode which is sometimes used with the &amp;quot;Back&amp;quot; button in a web browser. After pressing and holding the button down for a while, a menu pops up showing a list of possible pages to jump to. The default delay is 600 ms; you can adjust it with setPopupDelay().&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/assistant-toolbar1.png&quot; alt=&quot;Qt Assistant's toolbar with tool buttons&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Qt Assistant's toolbar contains tool buttons that are associated with actions used in other parts of the main window.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPushButton.html&quot;&gt;&lt;tt&gt;QPushButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QToolBar.html&quot;&gt;&lt;tt&gt;QToolBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMainWindow.html&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAction.html&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/guibooks.html#fowler&quot;&gt;GUI Design Handbook: Push Button&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void clicked(boolean checked)" doc="/**
&lt;p&gt;This signal is emitted when the button is activated (i.e&amp;#x2e; pressed down then released while the mouse cursor is inside the button), when the shortcut key is typed, or when &lt;a href=&quot;QAbstractButton.html#click()&quot;&gt;&lt;tt&gt;click&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QAbstractButton.html#animateClick(int)&quot;&gt;&lt;tt&gt;animateClick&lt;/tt&gt;&lt;/a&gt; is called. Notably, this signal is &lt;i&gt;not&lt;/i&gt; emitted if you call &lt;a href=&quot;QAbstractButton.html#setDown(boolean)&quot;&gt;&lt;tt&gt;setDown&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QAbstractButton.html#setChecked(boolean)&quot;&gt;&lt;tt&gt;setChecked&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QAbstractButton.html#toggle()&quot;&gt;&lt;tt&gt;toggle&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If the button is checkable, &lt;tt&gt;checked&lt;/tt&gt; is true if the button is checked, or false if the button is unchecked.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(boolean checked)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QToolButton.html#pressed()&quot;&gt;&lt;tt&gt;pressed&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QToolButton.html#released()&quot;&gt;&lt;tt&gt;released&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QToolButton.html#toggled(boolean)&quot;&gt;&lt;tt&gt;toggled&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This signal is emitted when the widget's &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position &lt;tt&gt;pos&lt;/tt&gt; is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is &lt;a href=&quot;QAbstractScrollArea.html&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; and its subclasses that map the context menu event to coordinates of the viewport()&lt;/tt&gt; .&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QPoint pos)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void pressed()" doc="/**
&lt;p&gt;This signal is emitted when the button is pressed down.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QToolButton.html#released()&quot;&gt;&lt;tt&gt;released&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QToolButton.html#clicked(boolean)&quot;&gt;&lt;tt&gt;clicked&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void released()" doc="/**
&lt;p&gt;This signal is emitted when the button is released.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QToolButton.html#pressed()&quot;&gt;&lt;tt&gt;pressed&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QToolButton.html#clicked(boolean)&quot;&gt;&lt;tt&gt;clicked&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QToolButton.html#toggled(boolean)&quot;&gt;&lt;tt&gt;toggled&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void toggled(boolean checked)" doc="/**
&lt;p&gt;This signal is emitted whenever a checkable button changes its state. &lt;tt&gt;checked&lt;/tt&gt; is true if the button is checked, or false if the button is unchecked.&lt;/p&gt;
&lt;p&gt;This may be the result of a user action, &lt;a href=&quot;QAbstractButton.html#click()&quot;&gt;&lt;tt&gt;click&lt;/tt&gt;&lt;/a&gt; slot activation, or because &lt;a href=&quot;QAbstractButton.html#setChecked(boolean)&quot;&gt;&lt;tt&gt;setChecked&lt;/tt&gt;&lt;/a&gt; was called.&lt;/p&gt;
&lt;p&gt;The states of buttons in exclusive button groups are updated before this signal is emitted. This means that slots can act on either the &amp;quot;off&amp;quot; signal or the &amp;quot;on&amp;quot; signal emitted by the buttons in the group whose states have changed.&lt;/p&gt;
&lt;p&gt;For example, a slot that reacts to signals emitted by newly checked buttons but which ignores signals from buttons that have been unchecked can be implemented using the following pattern:&lt;/p&gt;
&lt;pre&gt;    void MyWidget::reactToToggle(bool checked)
    {
       if (checked) {
          &lt;span class=&quot;comment&quot;&gt;// Examine the new button states.&lt;/span&gt;
          ...
       }
    }&lt;/pre&gt;
&lt;p&gt;Button groups can be created using the &lt;a href=&quot;QButtonGroup.html&quot;&gt;&lt;tt&gt;QButtonGroup&lt;/tt&gt;&lt;/a&gt; class, and updates to the button states monitored with the &lt;tt&gt;QButtonGroup::buttonClicked&lt;/tt&gt; signal.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(boolean checked)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;checked&lt;/tt&gt;, &lt;a href=&quot;QToolButton.html#clicked(boolean)&quot;&gt;&lt;tt&gt;clicked&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void triggered(com.trolltech.qt.gui.QAction arg__1)" doc="/**
&lt;p&gt;This signal is emitted when the given &lt;tt&gt;arg__1&lt;/tt&gt; is triggered.&lt;/p&gt;
&lt;p&gt;The action may also be associated with other parts of the user interface, such as menu items and keyboard shortcuts. Sharing actions in this way helps make the user interface more consistent and is often less work to implement.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.gui.QAction arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QToolButton(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs an empty tool button with parent &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QToolButton()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QToolButton.html#QToolButton(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final com.trolltech.qt.core.Qt.ArrowType arrowType()" doc="/**
&lt;p&gt;Returns whether the button displays an arrow instead of a normal icon.&lt;/p&gt;
&lt;p&gt;This displays an arrow as the icon for the &lt;a href=&quot;QToolButton.html#QToolButton(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QToolButton.html#setArrowType(com.trolltech.qt.core.Qt.ArrowType)&quot;&gt;&lt;tt&gt;setArrowType&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean autoRaise()" doc="/**
&lt;p&gt;Returns whether auto-raising is enabled or not..&lt;/p&gt;
&lt;p&gt;The default is disabled (i.e&amp;#x2e; false).&lt;/p&gt;
&lt;p&gt;This property is currently ignored on Mac OS X when using QMacStyle.&lt;/p&gt;

@see &lt;a href=&quot;QToolButton.html#setAutoRaise(boolean)&quot;&gt;&lt;tt&gt;setAutoRaise&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QAction defaultAction()" doc="/**
&lt;p&gt;Returns the default action.&lt;/p&gt;

@see &lt;a href=&quot;QToolButton.html#setDefaultAction(com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;setDefaultAction&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QMenu menu()" doc="/**
&lt;p&gt;Returns the associated menu, or 0 if no menu has been defined.&lt;/p&gt;

@see &lt;a href=&quot;QToolButton.html#setMenu(com.trolltech.qt.gui.QMenu)&quot;&gt;&lt;tt&gt;setMenu&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QToolButton.ToolButtonPopupMode popupMode()" doc="/**
&lt;p&gt;Returns describes the way that popup menus are used with tool buttons.&lt;/p&gt;

@see &lt;a href=&quot;QToolButton.html#setPopupMode(com.trolltech.qt.gui.QToolButton.ToolButtonPopupMode)&quot;&gt;&lt;tt&gt;setPopupMode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setArrowType(com.trolltech.qt.core.Qt.ArrowType type)" doc="/**
&lt;p&gt;Sets whether the button displays an arrow instead of a normal icon to &lt;tt&gt;type&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This displays an arrow as the icon for the &lt;a href=&quot;QToolButton.html#QToolButton(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QToolButton.html#arrowType()&quot;&gt;&lt;tt&gt;arrowType&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setAutoRaise(boolean enable)" doc="/**
&lt;p&gt;Sets whether auto-raising is enabled or not. to &lt;tt&gt;enable&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default is disabled (i.e&amp;#x2e; false).&lt;/p&gt;
&lt;p&gt;This property is currently ignored on Mac OS X when using QMacStyle.&lt;/p&gt;

@see &lt;a href=&quot;QToolButton.html#autoRaise()&quot;&gt;&lt;tt&gt;autoRaise&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDefaultAction(com.trolltech.qt.gui.QAction arg__1)" doc="/**
&lt;p&gt;Sets the default action to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If a tool button has a default action, the action defines the button's properties like text, icon, tool tip, etc.&lt;/p&gt;

@see &lt;a href=&quot;QToolButton.html#defaultAction()&quot;&gt;&lt;tt&gt;defaultAction&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMenu(com.trolltech.qt.gui.QMenu menu)" doc="/**
&lt;p&gt;Associates the given &lt;tt&gt;menu&lt;/tt&gt; with this tool button.&lt;/p&gt;
&lt;p&gt;The menu will be shown according to the button's &lt;a href=&quot;QToolButton.html#popupMode()&quot;&gt;&lt;tt&gt;popupMode&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Ownership of the menu is not transferred to the tool button.&lt;/p&gt;

@see &lt;a href=&quot;QToolButton.html#menu()&quot;&gt;&lt;tt&gt;menu&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPopupMode(com.trolltech.qt.gui.QToolButton.ToolButtonPopupMode mode)" doc="/**
&lt;p&gt;Sets describes the way that popup menus are used with tool buttons to &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QToolButton.html#popupMode()&quot;&gt;&lt;tt&gt;popupMode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setToolButtonStyle(com.trolltech.qt.core.Qt.ToolButtonStyle style)" doc="/**
&lt;p&gt;Sets whether the tool button displays an icon only, text only, or text beside/below the icon. to &lt;tt&gt;style&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default is Qt::ToolButtonIconOnly.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QToolButton.html#QToolButton(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt; automatically connects this slot to the relevant signal in the &lt;a href=&quot;QMainWindow.html&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; in which is resides.&lt;/p&gt;

@see &lt;a href=&quot;QToolButton.html#toolButtonStyle()&quot;&gt;&lt;tt&gt;toolButtonStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void showMenu()" doc="/**
&lt;p&gt;Shows (pops up) the associated popup menu. If there is no such menu, this function does nothing. This function does not return until the popup menu has been closed by the user.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.Qt.ToolButtonStyle toolButtonStyle()" doc="/**
&lt;p&gt;Returns whether the tool button displays an icon only, text only, or text beside/below the icon..&lt;/p&gt;
&lt;p&gt;The default is Qt::ToolButtonIconOnly.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QToolButton.html#QToolButton(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt; automatically connects this slot to the relevant signal in the &lt;a href=&quot;QMainWindow.html&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; in which is resides.&lt;/p&gt;

@see &lt;a href=&quot;QToolButton.html#setToolButtonStyle(com.trolltech.qt.core.Qt.ToolButtonStyle)&quot;&gt;&lt;tt&gt;setToolButtonStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void actionEvent(com.trolltech.qt.gui.QActionEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void changeEvent(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void enterEvent(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent e)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected boolean hitButton(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void leaveEvent(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize minimumSizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void mousePressEvent(com.trolltech.qt.gui.QMouseEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void nextCheckState()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void paintEvent(com.trolltech.qt.gui.QPaintEvent arg__1)" doc="/**
&lt;p&gt;Paints the button in response to the paint &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize sizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void timerEvent(com.trolltech.qt.core.QTimerEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <enum name="ToolButtonPopupMode" doc="/**
&lt;p&gt;Describes how a menu should be popped up for tool buttons that has a menu set or contains a list of actions.&lt;/p&gt;
 */">
        <enum-value name="DelayedPopup" doc="/**
&lt;p&gt;After pressing and holding the tool button down for a certain amount of time (the timeout is style dependant, see QStyle::SH_ToolButton_PopupDelay), the menu is displayed. A typical application example is the &amp;quot;back&amp;quot; button in some web browsers's tool bars. If the user clicks it, the browser simply browses back to the previous page. If the user presses and holds the button down for a while, the tool button shows a menu containing the current history list&lt;/p&gt;
 */"/>
        <enum-value name="MenuButtonPopup" doc="/**
&lt;p&gt;In this mode the tool button displays a special arrow to indicate that a menu is present. The menu is displayed when the arrow part of the button is pressed.&lt;/p&gt;
 */"/>
        <enum-value name="InstantPopup" doc="/**
&lt;p&gt;The menu is displayed, without delay, when the tool button is pressed. In this mode, the button's own action is not triggered.&lt;/p&gt;
 */"/>
</enum>
</class>