QWidgetItem Class
QWidgetItem クラスは、ウィジェットを表すレイアウト項目です。詳細...
| ヘッダー: | #include <QWidgetItem> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| 継承元: | QLayoutItem |
パブリック関数
| QWidgetItem(QWidget *widget) | |
| virtual | ~QWidgetItem() |
再実装されたパブリック関数
| virtual QSizePolicy::ControlTypes | controlTypes() const override |
| virtual Qt::Orientations | expandingDirections() const override |
| virtual QRect | geometry() const override |
| virtual bool | hasHeightForWidth() const override |
| virtual int | heightForWidth(int w) const override |
| virtual bool | isEmpty() const override |
| virtual QSize | maximumSize() const override |
| virtual QSize | minimumSize() const override |
| virtual void | setGeometry(const QRect &rect) override |
| virtual QSize | sizeHint() const override |
| virtual QWidget * | widget() const override |
関連項目: QLayout 、QSpacerItem 、およびQLayoutItem::widget()。
メンバ関数のドキュメント
[explicit] QWidgetItem::QWidgetItem(QWidget *widget)
指定されたwidget を含むアイテムを作成します。
[virtual noexcept] QWidgetItem::~QWidgetItem()
デストラクタ。
[override virtual] QSizePolicy::ControlTypes QWidgetItem::controlTypes() const
再実装:QLayoutItem::controlTypes() const。
このサイズポリシーが適用されるウィジェットに関連付けられたコントロール型を返します。
QSizePolicy::controlType()も参照してください 。
[override virtual] Qt::Orientations QWidgetItem::expandingDirections() const
QLayoutItem::expandingDirections() const を再実装します。
[override virtual] QRect QWidgetItem::geometry() const
QLayoutItem::geometry() const を再実装します。
setGeometry()も参照してください 。
[override virtual] bool QWidgetItem::hasHeightForWidth() const
QLayoutItem::hasHeightForWidth() const を再実装します。
[override virtual] int QWidgetItem::heightForWidth(int w) const
QLayoutItem::heightForWidth(int) const を再実装しています。
[override virtual] bool QWidgetItem::isEmpty() const
QLayoutItem::isEmpty() const を再実装します。
ウィジェットが非表示の場合は `true ` を返し、それ以外の場合は `false` を返します。
QWidget::isHidden()も参照してください 。
[override virtual] QSize QWidgetItem::maximumSize() const
QLayoutItem::maximumSize() const を再実装します。
[override virtual] QSize QWidgetItem::minimumSize() const
QLayoutItem::minimumSize() const を再実装します。
[override virtual] void QWidgetItem::setGeometry(const QRect &rect)
QLayoutItem::setGeometry(const QRect &r) を再実装します。
geometry()も参照してください 。
[override virtual] QSize QWidgetItem::sizeHint() const
QLayoutItem::sizeHint() const を再実装します。
[override virtual] QWidget *QWidgetItem::widget() const
QLayoutItem::widget() const を再実装します。
この項目によって管理されているウィジェットを返します。
© 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.