QGraphicsSceneResizeEvent Class
QGraphicsSceneResizeEvent 클래스는 그래픽 뷰 프레임워크에서 위젯 크기 조정을 위한 이벤트를 제공합니다. 더 보기...
Header: | #include <QGraphicsSceneResizeEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
상속합니다: | QGraphicsSceneEvent |
공용 함수
QGraphicsSceneResizeEvent() | |
virtual | ~QGraphicsSceneResizeEvent() |
QSizeF | newSize() const |
QSizeF | oldSize() const |
상세 설명
QGraphicsWidget 는 지오메트리가 변경되면 즉시 QGraphicsSceneResizeEvent를 자체적으로 전송합니다.
QResizeEvent 와 비슷하지만 oldSize() 및 newSize()의 크기는 QSize 대신 QSizeF 을 사용합니다.
QGraphicsWidget::setGeometry() 및 QGraphicsWidget::resize()도 참조하십시오 .
멤버 함수 문서
QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent()
QGraphicsSceneResizeEvent를 생성합니다.
[virtual noexcept]
QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent()
QGraphicsSceneResizeEvent 를 파괴합니다.
QSizeF QGraphicsSceneResizeEvent::newSize() const
새 크기(즉, 현재 크기)를 반환합니다.
oldSize() 및 QGraphicsWidget::resize()도 참조하세요 .
QSizeF QGraphicsSceneResizeEvent::oldSize() const
이전 크기(즉, 위젯 크기가 조정되기 직전의 크기)를 반환합니다.
newSize() 및 QGraphicsWidget::resize()도 참조하세요 .
© 2025 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.