Q_ENUMS alternative help.

José Antonio Fernández Fernández aullasistemas at gmail.com
Fri Apr 9 19:16:51 BST 2021


Hello everyone, let's see if you can help me with this.
This widget example (designer plugin) works in PyQt5 versions that had the
Q_ENUMS function available (old_ok.py).

Now when I try to load with PyQt6 (new_bad.py), which changes Q_ENUM to
pyqtEnum, I get the following error:

...
selectionMode = QtCore.pyqtProperty(
SystemError: <class 'PyQt6.QtCore.pyqtProperty'> returned a result with an
error set



I know I'm doing it wrong, but if someone explains to me how to fix it,
with an example I would really appreciate it.
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210409/615a98e7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: old_ok.py
Type: text/x-python
Size: 634 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210409/615a98e7/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: new_bad.py
Type: text/x-python
Size: 639 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210409/615a98e7/attachment-0001.py>


More information about the PyQt mailing list