Details
Description
Hello,
I'm trying out the pyside6-designer and am blocked by the fact that enum properties are not supported in custom widgets.
To be more precise, having taken your TicTacToe example, I've modified it to have an additional property:
class TicTacToe(QWidget): def __init__(self, ...): ... self._prop1 = Qt.AlignRight @Property(Qt.AlignmentFlag) def prop1(self): return self._prop1 @prop1.setter def prop1(self, new_val): self._prop1 = new_val
Opening the Qt designer prints the following error:
The property "prop1" of type (unknown) is not supported yet!
I know that PyQt6 is having similar support issues (it used to be supported in PyQt5, but something has fundamentally changed in Qt6 that prevents them from working properly with the dynamism of Python).
Would you have an estimate when the support for them could be implemented?
Thanks,
Ivan
Attachments
Issue Links
- relates to
-
PYSIDE-1930 REG ->6.2.4: Cannot return Qt.CheckState enum values from QAbstractItemModel::flags()
- Closed
-
PYSIDE-2339 Enums returned from QAIM::data() get casted to ints for StyledItemDelegate.displayText()
- Closed
For Gerrit Dashboard: PYSIDE-2840 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
583639,3 | Qt Desiger: Improve message about unsupported types | dev | qt/qttools | Status: MERGED | +2 | 0 |
583725,2 | Qt Desiger: Improve message about unsupported types | 6.8 | qt/qttools | Status: MERGED | +2 | 0 |
583793,2 | Qt Desiger: Improve message about unsupported types | 6.7 | qt/qttools | Status: MERGED | +2 | 0 |
583844,4 | Fix Enum properties for Qt Designer | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
597740,2 | PySide6-property: Improve error handling | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
597886,2 | PySide6-property: Improve error handling | 6.8 | pyside/pyside-setup | Status: MERGED | +2 | 0 |