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

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

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

__NOTOC__

Image:qt-logo.png

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

Image:trolltech-logo.png

Содержание

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

The QHelpEvent class provides an event that is used to request helpful information about a particular point in a widget. Далее...

 #include <QHelpEvent>

Inherits QEvent.

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

  • 6 public functions inherited from QEvent

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


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

The QHelpEvent class provides an event that is used to request helpful information about a particular point in a widget.

This event can be intercepted in applications to provide tooltips or "What's This?" help for custom widgets. The type() can be either QEvent::ToolTip or QEvent::WhatsThis.

See also QToolTip, QWhatsThis, QStatusTipEvent, and QWhatsThisClickedEvent.


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

[править]
QHelpEvent::QHelpEvent ( Type type, const QPoint & pos, const QPoint & globalPos )

Constructs a help event with the given type corresponding to the widget-relative position specified by pos and the global position specified by globalPos.

type must be either QEvent::ToolTip or QEvent::WhatsThis.

See also pos() and globalPos().

[править]
const QPoint & QHelpEvent::globalPos () const

Returns the mouse cursor position when the event was generated in global coordinates.

See also pos(), globalX(), and globalY().

[править]
int QHelpEvent::globalX () const

Same as globalPos(). x().

See also x(), globalY(), and globalPos().

[править]
int QHelpEvent::globalY () const

Same as globalPos(). y().

See also y(), globalX(), and globalPos().

[править]
const QPoint & QHelpEvent::pos () const

Returns the mouse cursor position when the event was generated, relative to the widget to which the event is dispatched.

See also globalPos(), x(), and y().

[править]
int QHelpEvent::x () const

Same as pos().x().

See also y(), pos(), and globalPos().

[править]
int QHelpEvent::y () const

Same as pos().y().

See also x(), pos(), and globalPos().



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2