Qt:Документация 4.3.2/q3button

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] Q3Button Class Reference
[ Qt3Support module]

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. Мы настоятельно не рекомендуем использовать этот класс в новом коде. See Porting to Qt 4 for more information.

Inherits QAbstractButton.

[править] Открытые функции

  • 21 public functions inherited from QAbstractButton
  • 201 свойство, унаследованное от QWidget
  • 29 открытых функций, унаследованных от QObject
  • 12 открытых функций, унаследованных от QPaintDevice

[править] Защищенные функции

  • 3 protected functions inherited from QAbstractButton
  • 38 защищенных функций, унаследованных от QWidget
  • 7 защищенных функций, унаследованных от QObject
  • 1 защищенная функция, унаследованных от QPaintDevice

[править] Дополнительные унаследованные члены

  • 11 properties inherited from QAbstractButton
  • 56 свойств, унаследованных от QWidget
  • 1 свойство, унаследованное от QObject
  • 5 public slots inherited from QAbstractButton
  • 19 открытых слотов, унаследованных от QWidget
  • 1 открытый слот, унаследованный от QObject
  • 4 signals inherited from QAbstractButton
  • 1 сигнал, унаследованный от QWidget
  • 1 сигнал, унаследованный от QObject
  • 4 статических открытых члена, унаследованных от QWidget
  • 5 статических открытых членов, унаследованных от QObject
  • 1 защищенный слот, унаследованый от QWidget

[править] Подробное описание

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).


[править] Описание функций-членов

[править]
Q3Button::Q3Button ( QWidget * parent = 0, const char * name = 0, Qt::WindowFlags f = 0 )

Constructs a standard button called name with parent parent, using the widget flags f.

[править]
Q3Button::~Q3Button ()

Уничтожает кнопку.

[править]
void Q3Button::drawButton ( QPainter * painter ) [virtual protected]

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().

[править]
void Q3Button::drawButtonLabel ( QPainter * painter ) [virtual protected]

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().

[править]
void Q3Button::paintEvent ( QPaintEvent * event ) [virtual protected]

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().

Reimplemented from QWidget.

See also drawButton() and drawButtonLabel().



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2