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.