Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QWidgetItem Class

TheQWidgetItem class is a layout item that represents a widget.More...

Header:#include <QWidgetItem>
Inherits:QLayoutItem

Public Functions

QWidgetItem(QWidget * widget)

Reimplemented Public Functions

virtual Qt::OrientationsexpandingDirections() const
virtual QRectgeometry() const
virtual boolhasHeightForWidth() const
virtual intheightForWidth(int w) const
virtual boolisEmpty() const
virtual QSizemaximumSize() const
virtual QSizeminimumSize() const
virtual voidsetGeometry(const QRect & rect)
virtual QSizesizeHint() const
virtual QWidget *widget()

Detailed Description

TheQWidgetItem class is a layout item that represents a widget.

Normally, you don't need to use this class directly. Qt's built-in layout managers provide the following functions for manipulating widgets in layouts:

See alsoQLayout,QSpacerItem, andQLayoutItem::widget().

Member Function Documentation

QWidgetItem::QWidgetItem(QWidget * widget)

Creates an item containing the givenwidget.

[virtual]Qt::Orientations QWidgetItem::expandingDirections() const

Reimplemented fromQLayoutItem::expandingDirections().

[virtual]QRect QWidgetItem::geometry() const

Reimplemented fromQLayoutItem::geometry().

See alsosetGeometry().

[virtual]bool QWidgetItem::hasHeightForWidth() const

Reimplemented fromQLayoutItem::hasHeightForWidth().

[virtual]int QWidgetItem::heightForWidth(int w) const

Reimplemented fromQLayoutItem::heightForWidth().

[virtual]bool QWidgetItem::isEmpty() const

Reimplemented fromQLayoutItem::isEmpty().

Returns true if the widget is hidden; otherwise returns false.

See alsoQWidget::isHidden().

[virtual]QSize QWidgetItem::maximumSize() const

Reimplemented fromQLayoutItem::maximumSize().

[virtual]QSize QWidgetItem::minimumSize() const

Reimplemented fromQLayoutItem::minimumSize().

[virtual]void QWidgetItem::setGeometry(constQRect & rect)

Reimplemented fromQLayoutItem::setGeometry().

See alsogeometry().

[virtual]QSize QWidgetItem::sizeHint() const

Reimplemented fromQLayoutItem::sizeHint().

[virtual]QWidget * QWidgetItem::widget()

Reimplemented fromQLayoutItem::widget().

Returns the widget managed by this item.

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


[8]ページ先頭

©2009-2025 Movatter.jp