In questa pagina

QGraphicsSceneResizeEvent Class

La classe QGraphicsSceneResizeEvent fornisce eventi relativi al ridimensionamento dei widget nel framework della vista grafica. Per saperne di più...

Intestazione: #include <QGraphicsSceneResizeEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
qmake: QT += widgets
Eredita da: QGraphicsSceneEvent

Funzioni pubbliche

QGraphicsSceneResizeEvent()
virtual ~QGraphicsSceneResizeEvent()
QSizeF newSize() const
QSizeF oldSize() const

Descrizione dettagliata

Un oggetto QGraphicsWidget invia immediatamente a se stesso un evento QGraphicsSceneResizeEvent non appena la sua geometria cambia.

È simile a ` QResizeEvent`, ma i suoi metodi `sizes`, ` oldSize()` e ` newSize()` utilizzano ` QSizeF ` invece di ` QSize`.

Vedi anche QGraphicsWidget::setGeometry() e QGraphicsWidget::resize().

Documentazione sulle funzioni membro

QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent()

Crea un oggetto `QGraphicsSceneResizeEvent`.

[virtual noexcept] QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent()

Distrugge l'QGraphicsSceneResizeEvent.

QSizeF QGraphicsSceneResizeEvent::newSize() const

Restituisce la nuova dimensione (ovvero la dimensione corrente).

Vedi anche oldSize() e QGraphicsWidget::resize().

QSizeF QGraphicsSceneResizeEvent::oldSize() const

Restituisce la dimensione precedente (ovvero, la dimensione immediatamente prima che il widget venisse ridimensionato).

Vedi anche 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.