Is there a List of Qt classes not supported in PythonQt?
Dynamic Python binding for Qt Applications
Brought to you by:
florianlink,
marcusbarann
I am developing a GUI for a program that uses PythonQt for script interface.
I had compliation errors when trying to import QString and QStringList from QtCore.
Application manufacturer told me PythonQt does not support QString and QStringList, and that there are workarounds, etc. , but still pretty inconvenient to find this out only when coding is done.
I could not find such info on the site, or do I miss something??
You can use normal Python str/unicode strings and they are automatically converted to/from QString. QStringList is automatically converted to/from a list of str objects.
This is the same behaviour as newer versions of PyQt, it would not make much sense to have QString in Python because it could not interact well with Python libraries that expect a str.
OK thank you for the clear explanation.
Question was however if there are more classes in QtCore and other modules that are not or not fully implemented in PythonQt. No problem, but would be good to have this listed somewhere.
Last edit: Frans Verbaas 2018-03-13
No, there is no such list, but you are free to compile one.
You can use dir() to get a listing of all classes in QtCore and compare them to C++ Qt.
Or you can have a look at the generator xml files and look for rejected classes.