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()も参照してください

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