QResizeEvent Class

QResizeEvent 클래스에는 크기 조정 이벤트에 대한 이벤트 매개 변수가 포함되어 있습니다. 더 보기...

Header: #include <QResizeEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
상속합니다: QEvent

공용 함수

QResizeEvent(const QSize &size, const QSize &oldSize)
const QSize &oldSize() const
const QSize &size() const

상세 설명

크기 조정 이벤트는 크기가 조정된 위젯으로 전송됩니다.

이벤트 핸들러 QWidget::resizeEvent()는 크기 조정 이벤트를 수신합니다.

QWidget::resize() 및 QWidget::setGeometry()도 참조하세요 .

멤버 함수 문서

QResizeEvent::QResizeEvent(const QSize &size, const QSize &oldSize)

새 위젯 크기와 이전 위젯 크기( sizeoldSize )로 각각 크기 조정 이벤트를 생성합니다.

const QSize &QResizeEvent::oldSize() const

위젯의 이전 크기를 반환합니다.

const QSize &QResizeEvent::size() const

위젯의 새 크기를 반환합니다. QWidget::size ()와 동일합니다.

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