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

QExposeEvent Class

The QExposeEvent class contains event parameters for expose events.

This class was introduced in Qt 5.0.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QExposeEvent Class

  • Header: QExposeEvent

  • Since: Qt 5.0

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Gui)

    target_link_libraries(mytarget PRIVATE Qt6::Gui)

  • qmake: QT += gui

  • Inherits: QEvent

  • Group: QExposeEvent is part of events

Detailed Description

Expose events are sent to windows when they move between the un-exposed and exposed states.

An exposed window is potentially visible to the user. If the window is moved off screen, is made totally obscured by another window, is minimized, or similar, an expose event is sent to the window, and isExposed() might change to false.

Expose events should not be used to paint. Handle QPaintEvent instead.

The event handler QWindow::exposeEvent() receives expose events.

Member Function Documentation

 

[explicit] QExposeEvent::QExposeEvent(const QRegion &exposeRegion)

Constructs an expose event for the given exposeRegion which must be in local coordinates.

Obsolete Members for QExposeEvent

The following members of class QExposeEvent are deprecated. We strongly advise against using them in new code.

Obsolete Member Function Documentation

 
const QRegion &QExposeEvent::region() const

This function is deprecated since 6.0. We strongly advise against using it in new code.

Use QPaintEvent instead.

Returns the window area that has been exposed. The region is given in local coordinates.

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