Qt:Документация 4.3.2/qwidgetitem

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] QWidgetItem Class Reference
[модуль QtGui ]

The QWidgetItem class is a layout item that represents a widget. Далее...

 #include <QWidgetItem>

Inherits QLayoutItem.

[править] Открытые функции

  • 17 открытых функций, унаследованных от QLayoutItem

[править] Подробное описание

The QWidgetItem 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:


Класс Функции
QBoxLayout addWidget(), insertWidget(), setStretchFactor()
QGridLayout addWidget()
QStackedLayout addWidget(), insertWidget(), currentWidget(), setCurrentWidget(), widget()

See also QLayout, QSpacerItem, and QLayoutItem::widget().


[править] Описание функций-членов

[править]
QWidgetItem::QWidgetItem ( QWidget * widget )

Creates an item containing the given widget.

[править]
bool QWidgetItem::isEmpty () const [virtual]

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

Reimplemented from QLayoutItem.

See also QWidget::isHidden().

[править]
QWidget * QWidgetItem::widget () [virtual]

Returns the widget managed by this item.

Reimplemented from QLayoutItem.



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2