coolboymark coolboymark - 1 year ago 99
Python Question

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, what can I do to use them.thank you.Not just QString and QStringList, I can not find QTableModel, QListModel and etc too.

Answer Source

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 here.

For example,

  • QStringunicode (str in Python 3)
  • 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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download