이 페이지에서

QGraphicsSceneResizeEvent Class

QGraphicsSceneResizeEvent 클래스는 그래픽 뷰 프레임워크에서 위젯 크기 조정에 대한 이벤트를 제공합니다. 더 보기...

헤더: #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()도 참조하십시오 .

© 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.