I want to use QString and QStringList but can not find them in PySide 1.1.0 modules or documents. Not just QString and QStringList, I can not find QTableModel, QListModel etc. either.
I want to use QString and QStringList but can not find them in PySide
Share
You don’t need QString or QStringList: you can use Python’s native types anywhere they would be needed in C++/Qt.
More details about this can be found in PSEP 101.
For example,
QString→str(unicodein Python 2)QVariant→ whatever typeQByteArray→bytesorbytearrayAnd there have never been such classes as
QTableModelandQListModelin Qt.You’re probably looking for
QAbstractTableModelandQAbstractListModel.