IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QHelpEvent Class

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

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QHelpEvent Class▲

  • Header: QHelpEvent

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Gui)

    target_link_libraries(mytarget PRIVATE Qt6::Gui)

  • qmake: QT += gui

  • Inherits: QEvent

  • Group: QHelpEvent is part of events, helpsystem

Detailed Description▲

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▲

Member Function Documentation▲

 

QHelpEvent::QHelpEvent(QEvent::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▲

See also pos(), globalPos()

const QPoint &QHelpEvent::globalPos() const▲

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

See Also▲

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

int QHelpEvent::globalX() const▲

Same as globalPos().x().

See Also▲

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

int QHelpEvent::globalY() const▲

Same as globalPos().y().

See Also▲

See also y(), globalX(), 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▲

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

int QHelpEvent::x() const▲

Same as pos().x().

See Also▲

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

int QHelpEvent::y() const▲

Same as pos().y().

See Also▲

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

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+