QStringListModel Class Reference
[QtGui module]
Inherits QAbstractListModel.
Inherited by QHelpIndexModel.
Methods
- __init__ (self, QObject parent = None)
- __init__ (self, QStringList, QObject parent = None)
- QVariant data (self, QModelIndex, int)
- Qt.ItemFlags flags (self, QModelIndex)
- bool insertRows (self, int, int, QModelIndex parent = QModelIndex())
- bool removeRows (self, int, int, QModelIndex parent = QModelIndex())
- int rowCount (self, QModelIndex parent = QModelIndex())
- bool setData (self, QModelIndex, QVariant, int role = Qt.EditRole)
- setStringList (self, QStringList)
- sort (self, int, Qt.SortOrder order = Qt.AscendingOrder)
- QStringList stringList (self)
- Qt.DropActions supportedDropActions (self)
Detailed Description
Method Documentation
QStringListModel.__init__ (self, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QStringListModel.__init__ (self, QStringList, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QVariant QStringListModel.data (self, QModelIndex, int)
bool QStringListModel.insertRows (self, int, int, QModelIndex parent = QModelIndex())
bool QStringListModel.removeRows (self, int, int, QModelIndex parent = QModelIndex())
int QStringListModel.rowCount (self, QModelIndex parent = QModelIndex())
bool QStringListModel.setData (self, QModelIndex, QVariant, int role = Qt.EditRole)
QStringListModel.setStringList (self, QStringList)
QStringListModel.sort (self, int, Qt.SortOrder order = Qt.AscendingOrder)
QStringList QStringListModel.stringList (self)
Qt.DropActions QStringListModel.supportedDropActions (self)