Q3Button Class Reference
|
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.
Уничтожает кнопку.
Draws the button on the given painter. Реализация по умолчанию ничего не делает.
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().
Смотрите также drawButton() и paintEvent().
Переопределено от 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().
Смотрите также drawButton() и drawButtonLabel().
Авторские права © 2010 Nokia Corporation и/или её дочерние компании | Торговые марки | Qt 4.6.4 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |