QResizeEvent Class

QResizeEventクラスには、リサイズイベントのイベントパラメータが含まれています。詳細...

ヘッダー #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.