Closed dirk-thomas closed 11 years ago
This is not a bug as it behaves the same way as the native bindings do on SIP API version 2. PyQt4 with SIP API version 2 as well as PySide in general do not support the use of Qt's string and list classes as they are transparently replaced by the appropriate Python types: http://qt-project.org/wiki/Differences_Between_PySide_and_PyQt#b7669e9ad9355d8b4e8fdccade317b2b
You will get the same result when importing PyQt4 manually and setting the SIP API version to 2. Is there any use case where you would need those classes?
I filled the ticket because of http://answers.ros.org/question/86746/python_qt_binding-and-qstringlistqstringlistmodel-missing/. I suggested to use plain Python strings / list there.
When I did a quick test I did not set the API version - you are absolutely right - the current behavior is intended.
While these types are accessible when using e.g. PyQt4 directly:
the same does not work thorugh python_qt_binding.
The user can usually use native Python strings and list of strings. But it would be nice if the same way which works for the native bindings would also work with python_qt_binding.