QGraphicsSceneResizeEvent Class
La classe QGraphicsSceneResizeEvent fournit des événements pour le redimensionnement des widgets dans le cadre de la vue graphique. Plus d'informations...
| En-tête : | #include <QGraphicsSceneResizeEvent> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Widgets)target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake : | QT += widgets |
| Héritages : | QGraphicsSceneEvent |
Fonctions publiques
| QGraphicsSceneResizeEvent() | |
| virtual | ~QGraphicsSceneResizeEvent() |
| QSizeF | newSize() const |
| QSizeF | oldSize() const |
Description détaillée
Un site QGraphicsWidget s'envoie un QGraphicsSceneResizeEvent dès que sa géométrie change.
Il est similaire à QResizeEvent, mais ses tailles, oldSize() et newSize(), utilisent QSizeF au lieu de QSize.
Voir également QGraphicsWidget::setGeometry() et QGraphicsWidget::resize().
Documentation des fonctions membres
QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent()
Construit un événement QGraphicsSceneResizeEvent.
[virtual noexcept] QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent()
Détruit le site QGraphicsSceneResizeEvent.
QSizeF QGraphicsSceneResizeEvent::newSize() const
Renvoie la nouvelle taille (c'est-à-dire la taille actuelle).
Voir aussi oldSize() et QGraphicsWidget::resize().
QSizeF QGraphicsSceneResizeEvent::oldSize() const
Renvoie l'ancienne taille (c'est-à-dire la taille précédant immédiatement le redimensionnement du widget).
Voir aussi 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.