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

QGraphicsSceneResizeEvent Class

The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framework.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QGraphicsSceneResizeEvent Class▲

  • Header: QGraphicsSceneResizeEvent

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Widgets)

    target_link_libraries(mytarget PRIVATE Qt6::Widgets)

  • qmake: QT += widgets

  • Inherits: QGraphicsSceneEvent

  • Group: QGraphicsSceneResizeEvent is part of graphicsview-api

Detailed Description▲

A QGraphicsWidget sends itself a QGraphicsSceneResizeEvent immediately when its geometry changes.

It's similar to QResizeEvent, but its sizes, oldSize() and newSize(), use QSizeF instead of QSize.

See Also▲

Member Function Documentation▲

 

QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent()▲

[virtual] QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent()▲

QSizeF QGraphicsSceneResizeEvent::newSize() const▲

Returns the new size (i.e., the current size).

See Also▲

QSizeF QGraphicsSceneResizeEvent::oldSize() const▲

Returns the old size (i.e., the size immediately before the widget was resized).

See Also▲

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