The Q3Button class is a compatibility base class of button widgets More...
#include <Q3Button>
This class is part of the Qt 3 support library. It is provided to keep old source code working. We strongly advise against using it in new code. See Porting to Qt 4 for more information.
Inherits: QAbstractButton.
Q3Button ( QWidget * parent = 0, const char * name = 0, Qt::WindowFlags f = 0 ) | |
~Q3Button () |
virtual void | drawButton ( QPainter * painter ) |
virtual void | drawButtonLabel ( QPainter * painter ) |
virtual void | paintEvent ( QPaintEvent * event ) |
The Q3Button class is a compatibility base class of button widgets
In new code, use QAbstractButton.
To subclass Q3Button, you must reimplement at least drawButton() (to draw the button's outline) and drawButtonLabel() (to draw its text or pixmap). It is generally advisable to reimplement sizeHint() as well, and sometimes hitButton() (to determine whether a button press is within the button).
Constructs a standard button called name with parent parent, using the widget flags f.
Destroys the button.
Draws the button on the given painter. The default implementation does nothing.
This virtual function is reimplemented by subclasses to draw real buttons. At some point, these reimplementations should call drawButtonLabel().
See also drawButtonLabel() and paintEvent().
Draws the button text or pixmap on the given painter.
This virtual function is reimplemented by subclasses to draw real buttons. It is invoked by drawButton().
See also drawButton() and paintEvent().
Reimplemented from QWidget::paintEvent().
Handles paint events, received in event, for buttons. Small and typically complex buttons are painted double-buffered to reduce flicker. The actually drawing is done in the virtual functions drawButton() and drawButtonLabel().
See also drawButton() and drawButtonLabel().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.