QStandardItemModel Class Reference
[QtGui module]
Inherits QAbstractItemModel.
Methods
- __init__ (self, QObject parent = None)
- __init__ (self, int, int, QObject parent = None)
- appendColumn (self, list-of-QStandardItem)
- appendRow (self, list-of-QStandardItem)
- appendRow (self, QStandardItem)
- clear (self)
- int columnCount (self, QModelIndex parent = QModelIndex())
- QVariant data (self, QModelIndex, int role = Qt.DisplayRole)
- bool dropMimeData (self, QMimeData, Qt.DropAction, int, int, QModelIndex)
- list-of-QStandardItem findItems (self, QString, Qt.MatchFlags flags = Qt.MatchExactly, int column = 0)
- Qt.ItemFlags flags (self, QModelIndex)
- bool hasChildren (self, QModelIndex parent = QModelIndex())
- QVariant headerData (self, int, Qt.Orientation, int role = Qt.DisplayRole)
- QStandardItem horizontalHeaderItem (self, int)
- QModelIndex index (self, int, int, QModelIndex parent = QModelIndex())
- QModelIndex indexFromItem (self, QStandardItem)
- insertColumn (self, int, list-of-QStandardItem)
- bool insertColumn (self, int, QModelIndex parent = QModelIndex())
- bool insertColumns (self, int, int, QModelIndex parent = QModelIndex())
- insertRow (self, int, list-of-QStandardItem)
- insertRow (self, int, QStandardItem)
- bool insertRow (self, int, QModelIndex parent = QModelIndex())
- bool insertRows (self, int, int, QModelIndex parent = QModelIndex())
- QStandardItem invisibleRootItem (self)
- QStandardItem item (self, int, int column = 0)
- dict-of-int-QVariant itemData (self, QModelIndex)
- QStandardItem itemFromIndex (self, QModelIndex)
- QStandardItem itemPrototype (self)
- QMimeData mimeData (self, list-of-QModelIndex)
- QStringList mimeTypes (self)
- QModelIndex parent (self, QModelIndex)
- QObject parent (self)
- bool removeColumns (self, int, int, QModelIndex parent = QModelIndex())
- bool removeRows (self, int, int, QModelIndex parent = QModelIndex())
- int rowCount (self, QModelIndex parent = QModelIndex())
- setColumnCount (self, int)
- bool setData (self, QModelIndex, QVariant, int role = Qt.EditRole)
- bool setHeaderData (self, int, Qt.Orientation, QVariant, int role = Qt.EditRole)
- setHorizontalHeaderItem (self, int, QStandardItem)
- setHorizontalHeaderLabels (self, QStringList)
- setItem (self, int, int, QStandardItem)
- setItem (self, int, QStandardItem)
- bool setItemData (self, QModelIndex, dict-of-int-QVariant)
- setItemPrototype (self, QStandardItem)
- setRowCount (self, int)
- setSortRole (self, int)
- setVerticalHeaderItem (self, int, QStandardItem)
- setVerticalHeaderLabels (self, QStringList)
- sort (self, int, Qt.SortOrder order = Qt.AscendingOrder)
- int sortRole (self)
- Qt.DropActions supportedDropActions (self)
- list-of-QStandardItem takeColumn (self, int)
- QStandardItem takeHorizontalHeaderItem (self, int)
- QStandardItem takeItem (self, int, int column = 0)
- list-of-QStandardItem takeRow (self, int)
- QStandardItem takeVerticalHeaderItem (self, int)
- QStandardItem verticalHeaderItem (self, int)
Qt Signals
Detailed Description
Method Documentation
QStandardItemModel.__init__ (self, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QStandardItemModel.__init__ (self, int, int, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QStandardItemModel.appendColumn (self, list-of-QStandardItem)
The list-of-QStandardItem argument has it's ownership transferred to Qt.
QStandardItemModel.appendRow (self, list-of-QStandardItem)
The list-of-QStandardItem argument has it's ownership transferred to Qt.
QStandardItemModel.appendRow (self, QStandardItem)
The QStandardItem argument has it's ownership transferred to Qt.
QStandardItemModel.clear (self)
int QStandardItemModel.columnCount (self, QModelIndex parent = QModelIndex())
QVariant QStandardItemModel.data (self, QModelIndex, int role = Qt.DisplayRole)
list-of-QStandardItem QStandardItemModel.findItems (self, QString, Qt.MatchFlags flags = Qt.MatchExactly, int column = 0)
bool QStandardItemModel.hasChildren (self, QModelIndex parent = QModelIndex())
QVariant QStandardItemModel.headerData (self, int, Qt.Orientation, int role = Qt.DisplayRole)
QStandardItem QStandardItemModel.horizontalHeaderItem (self, int)
QModelIndex QStandardItemModel.index (self, int, int, QModelIndex parent = QModelIndex())
QStandardItemModel.insertColumn (self, int, list-of-QStandardItem)
The list-of-QStandardItem argument has it's ownership transferred to Qt.
bool QStandardItemModel.insertColumn (self, int, QModelIndex parent = QModelIndex())
bool QStandardItemModel.insertColumns (self, int, int, QModelIndex parent = QModelIndex())
QStandardItemModel.insertRow (self, int, list-of-QStandardItem)
The list-of-QStandardItem argument has it's ownership transferred to Qt.
QStandardItemModel.insertRow (self, int, QStandardItem)
The QStandardItem argument has it's ownership transferred to Qt.
bool QStandardItemModel.insertRow (self, int, QModelIndex parent = QModelIndex())
bool QStandardItemModel.insertRows (self, int, int, QModelIndex parent = QModelIndex())
QStandardItem QStandardItemModel.invisibleRootItem (self)
QStandardItem QStandardItemModel.item (self, int, int column = 0)
dict-of-int-QVariant QStandardItemModel.itemData (self, QModelIndex)
QStandardItem QStandardItemModel.itemPrototype (self)
QMimeData QStandardItemModel.mimeData (self, list-of-QModelIndex)
The QMimeData result
QStringList QStandardItemModel.mimeTypes (self)
QObject QStandardItemModel.parent (self)
bool QStandardItemModel.removeColumns (self, int, int, QModelIndex parent = QModelIndex())
bool QStandardItemModel.removeRows (self, int, int, QModelIndex parent = QModelIndex())
int QStandardItemModel.rowCount (self, QModelIndex parent = QModelIndex())
QStandardItemModel.setColumnCount (self, int)
bool QStandardItemModel.setData (self, QModelIndex, QVariant, int role = Qt.EditRole)
bool QStandardItemModel.setHeaderData (self, int, Qt.Orientation, QVariant, int role = Qt.EditRole)
QStandardItemModel.setHorizontalHeaderItem (self, int, QStandardItem)
The QStandardItem argument has it's ownership transferred to Qt.
QStandardItemModel.setHorizontalHeaderLabels (self, QStringList)
QStandardItemModel.setItem (self, int, int, QStandardItem)
The QStandardItem argument has it's ownership transferred to Qt.
QStandardItemModel.setItem (self, int, QStandardItem)
The QStandardItem argument has it's ownership transferred to Qt.
bool QStandardItemModel.setItemData (self, QModelIndex, dict-of-int-QVariant)
QStandardItemModel.setItemPrototype (self, QStandardItem)
The QStandardItem argument has it's ownership transferred to Qt.
QStandardItemModel.setRowCount (self, int)
QStandardItemModel.setSortRole (self, int)
QStandardItemModel.setVerticalHeaderItem (self, int, QStandardItem)
The QStandardItem argument has it's ownership transferred to Qt.
QStandardItemModel.setVerticalHeaderLabels (self, QStringList)
QStandardItemModel.sort (self, int, Qt.SortOrder order = Qt.AscendingOrder)
int QStandardItemModel.sortRole (self)
Qt.DropActions QStandardItemModel.supportedDropActions (self)
list-of-QStandardItem QStandardItemModel.takeColumn (self, int)
The list-of-QStandardItem result
QStandardItem QStandardItemModel.takeHorizontalHeaderItem (self, int)
The QStandardItem result
QStandardItem QStandardItemModel.takeItem (self, int, int column = 0)
The QStandardItem result
list-of-QStandardItem QStandardItemModel.takeRow (self, int)
The list-of-QStandardItem result
QStandardItem QStandardItemModel.takeVerticalHeaderItem (self, int)
The QStandardItem result
QStandardItem QStandardItemModel.verticalHeaderItem (self, int)
Qt Signal Documentation
void itemChanged (QStandardItem *)
This is the default overload of this signal.