QGraphicsSceneResizeEvent Class
A classe QGraphicsSceneResizeEvent fornece eventos para o redimensionamento de widgets na estrutura de visualização gráfica. Mais...
| Cabeçalho: | #include <QGraphicsSceneResizeEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| Herdado de: | QGraphicsSceneEvent |
Funções públicas
| QGraphicsSceneResizeEvent() | |
| virtual | ~QGraphicsSceneResizeEvent() |
| QSizeF | newSize() const |
| QSizeF | oldSize() const |
Descrição detalhada
Um ` QGraphicsWidget ` envia a si mesmo um `QGraphicsSceneResizeEvent` imediatamente quando sua geometria é alterada.
É semelhante a ` QResizeEvent`, mas seus métodos de tamanho, ` oldSize()` e ` newSize()`, utilizam ` QSizeF ` em vez de ` QSize`.
Veja também QGraphicsWidget::setGeometry() e QGraphicsWidget::resize().
Documentação das funções-membro
QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent()
Cria um objeto `QGraphicsSceneResizeEvent`.
[virtual noexcept] QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent()
Destrói o “ QGraphicsSceneResizeEvent ”.
QSizeF QGraphicsSceneResizeEvent::newSize() const
Retorna o novo tamanho (ou seja, o tamanho atual).
Veja também oldSize() e QGraphicsWidget::resize().
QSizeF QGraphicsSceneResizeEvent::oldSize() const
Retorna o tamanho anterior (ou seja, o tamanho imediatamente antes de o widget ter sido redimensionado).
Veja também newSize() e 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.