Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

i can not find QString in PySide 1.1.0

I want to use QString and QStringList, but in PySide 1.1.0, they are not in modules, and not in documents.so, what can I do to use them.thank you.Not just QString and QStringList, I can not find QTableModel, QListModel and etc too.

like image 980
coolboymark Avatar asked Jul 24 '12 07:07

coolboymark


1 Answers

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,

  • QStringstr (unicode in Python 2)
  • QVariant → whatever type
  • QByteArraybytes or bytearray

And there have never been such classes as QTableModel and QListModel in Qt.
You're probably looking for QAbstractTableModel and QAbstractListModel.

like image 118
Oleh Prypin Avatar answered Sep 29 '22 03:09

Oleh Prypin