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

Qt 3 Support Members for QMouseEvent

Описанные ниже члены класса являются частью слоя поддержки Qt 3. Они введены для поддержки старого кода в Qt 4. Мы советуем не использовать их во вновь создаваемом коде.

Открытые функции


Описание функций-членов

QMouseEvent::QMouseEvent ( Type type, const QPoint & pos, Qt::ButtonState button, int state )

Use QMouseEvent(type, pos, button, buttons, modifiers) instead, where buttons is state & Qt::MouseButtonMask and modifiers is state & Qt::KeyButtonMask.

QMouseEvent::QMouseEvent ( Type type, const QPoint & pos, const QPoint & globalPos, Qt::ButtonState button, int state )

Use QMouseEvent(type, pos, globalPos, button, buttons, modifiers) instead, where buttons is state & Qt::MouseButtonMask and modifiers is state & Qt::KeyButtonMask.

Qt::ButtonState QMouseEvent::state () const

Returns the button state immediately before the event was generated. The button state is a combination of mouse buttons (see Qt::ButtonState) and keyboard modifiers (Qt::MouseButtons).

Use buttons() and/or modifiers() instead. Be aware that buttons() return the state immediately after the event was generated.

Qt::ButtonState QMouseEvent::stateAfter () const

Returns the button state immediately after the event was generated. The button state is a combination of mouse buttons (see Qt::ButtonState) and keyboard modifiers (Qt::MouseButtons).

Use buttons() and/or modifiers() instead.


Copyright © 2008 Trolltech Торговые марки
Qt 4.3.5