QGraphicsSceneResizeEvent Class
La classe `QGraphicsSceneResizeEvent` fournit des événements liés au redimensionnement des widgets dans le cadre de la vue graphique. En savoir plus...
| En-tête : | #include <QGraphicsSceneResizeEvent> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake : | QT += widgets |
| Hérite de : | QGraphicsSceneEvent |
Fonctions publiques
| QGraphicsSceneResizeEvent() | |
| virtual | ~QGraphicsSceneResizeEvent() |
| QSizeF | newSize() const |
| QSizeF | oldSize() const |
Description détaillée
Un objet ` QGraphicsWidget ` s'envoie immédiatement un événement `QGraphicsSceneResizeEvent` dès que sa géométrie change.
Elle est similaire à ` QResizeEvent`, mais ses méthodes de gestion des tailles, ` oldSize()` et ` newSize()`, utilisent ` QSizeF ` au lieu de ` QSize`.
Voir également QGraphicsWidget::setGeometry() et QGraphicsWidget::resize().
Documentation sur les fonctions membres
QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent()
Crée un objet `QGraphicsSceneResizeEvent`.
[virtual noexcept] QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent()
Supprime l'QGraphicsSceneResizeEvent.
QSizeF QGraphicsSceneResizeEvent::newSize() const
Renvoie la nouvelle taille (c'est-à-dire la taille actuelle).
Voir également oldSize() et QGraphicsWidget::resize().
QSizeF QGraphicsSceneResizeEvent::oldSize() const
Renvoie l'ancienne taille (c'est-à-dire la taille immédiatement avant le redimensionnement du widget).
Voir également newSize() et QGraphicsWidget::resize().
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.