> On 27 Mar 2021, at 14:40, Giuseppe D'Angelo via Interest > <interest@qt-project.org> wrote: > > 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.)
Yes, please file a bug about this. Cheers, Tor Arne > > 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 > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > https://lists.qt-project.org/listinfo/interest _______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest