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

int QAbstractItemModel::columnCount ( const QModelIndex parent = QModelIndex()  )  const [pure virtual, inherited]

Returns the number of columns for the children of the given parent.

In most subclasses, the number of columns is independent of the parent. For example:

itemviews/simpledommodel/dommodel.cpp columnCount /^$/

See also:
rowCount()

Implemented in QAbstractListModel, QDirModel, QProxyModel, QSortFilterProxyModel, QStandardItemModel, and QSqlQueryModel.

Referenced by QAbstractItemModel::decodeData(), QAbstractItemModel::hasChildren(), hasChildren(), QAbstractItemModel::hasIndex(), QTableView::selectColumn(), QItemSelectionModel::selectedRows(), and QTreeView::visualRegionForSelection().


Generated by  Doxygen 1.6.0   Back to index