On 27/03/2021 11:58, Alexander Dyagilev wrote:
Hmmm... What is this enum for then?
In C++ APIs, it's used in QColor's constructor.In QML, enumeration types are strange beasts (and I wish they weren't), sometimes being enum and sometimes being integers. I suggest to open a bug report suggesting to add a Qt::Color -> color type construction (assuming it's possible), because it's indeed supposed to "just work". (On the other hand, clearly, int->color should never work.)
Thanks, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com KDAB - The Qt, C++ and OpenGL Experts
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest