Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QListWidgetItem::QListWidgetItem ( QListWidget parent = 0,
int  type = Type 
) [explicit]

Constructs an empty list widget item of the specified type with the given parent. If the parent is not specified, the item will need to be inserted into a list widget with QListWidget::insertItem().

See also:

Definition at line 568 of file qlistwidget.cpp.

References QAbstractItemView::model().

Referenced by clone().

    : rtti(type), view(view), d(new QListWidgetItemPrivate(this)),
    if (QListModel *model = (view ? ::qobject_cast<QListModel*>(view->model()) : 0))
        model->insert(model->rowCount(), this);

Generated by  Doxygen 1.6.0   Back to index