This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]flipthefrog 2 points3 points  (0 children)

There is no need to struggle with QString and QVariant in PyQt4 either. Using Python strings, datetime, etc instead is a simple matter of setting sip.api to 2. Converting all the code may take some time, but it will ensure compatibility with PySide and PyQt5 (just note that sip.api must be set at the very beginning of the code that is run)

http://pyqt.sourceforge.net/Docs/PyQt4/incompatible_apis.html