Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.5.0
-
None
-
Windows 10, Qt 6.5, Visual Studio 2022
Description
Given this code:
class Gallery : public ScrollArea { Q_OBJECT Q_PROPERTY(Alignment alignment MEMBER alignment) public: enum class Alignment { top, left, center }; Q_ENUM(Alignment) Alignment alignment = Alignment::center; };
When updating the value of alignment using a stylesheet:
Gallery { qproperty-alignment: abc; /* any value != than left or "left" is ignored, alignment remains left */ qproperty-alignment: left; /* alignment becomes 19, why? (?)*/ qproperty-alignment: "left"; /* Inside quotes, as: "left", "right", both works correctly */ }
Why does alignment become 19 in the second case? Is it a bug?