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

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

Версия от 09:25, 29 января 2009; Root (Обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

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

Image:trolltech-logo.png

Содержание

[править] QGraphicsSceneWheelEvent Class Reference
[модуль QtGui ]

The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework. Далее...

 #include <QGraphicsSceneWheelEvent>

Inherits QGraphicsSceneEvent.

Класс был добавлен в Qt 4.2.

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

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


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

The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.

The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.

QWheelEvents received by a QGraphicsView are translated into QGraphicsSceneWheelEvents; it translates the QWheelEvent::globalPos() into item, scene, and screen coordinates ( pos(), scenePos(), and screenPos()).

See also QGraphicsSceneMouseEvent, QGraphicsSceneContextMenuEvent, QGraphicsSceneHoverEvent, and QWheelEvent.


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

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

Destroys the QGraphicsSceneWheelEvent.

[править]
Qt::MouseButtons QGraphicsSceneWheelEvent::buttons () const

Returns the mouse buttons that were pressed when the wheel event occurred.

See also modifiers().

[править]
int QGraphicsSceneWheelEvent::delta () const

Returns the distance that the wheel is rotated, in eighths (1/8s) of a degree. A positive value indicates that the wheel was rotated forwards away from the user; a negative value indicates that the wheel was rotated backwards toward the user.

Most mouse types work in steps of 15 degrees, in which case the delta value is a multiple of 120 (== 15 * 8).

[править]
Qt::KeyboardModifiers QGraphicsSceneWheelEvent::modifiers () const

Returns the keyboard modifiers that were active when the wheel event occurred.

See also buttons().

[править]
Qt::Orientation QGraphicsSceneWheelEvent::orientation () const

Returns the wheel orientation.

[править]
QPointF QGraphicsSceneWheelEvent::pos () const

Returns the position of the cursor in item coordinates when the wheel event occurred.

See also scenePos() and screenPos().

[править]
QPointF QGraphicsSceneWheelEvent::scenePos () const

Returns the position of the cursor in item coordinates when the wheel event occurred.

See also pos() and screenPos().

[править]
QPoint QGraphicsSceneWheelEvent::screenPos () const

Returns the position of the cursor in screen coordinates when the wheel event occurred.

See also pos() and scenePos().



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2