[Interest] Are Qt.transparent and "transparent" different colors?
Tor Arne Vestbø
Tor.arne.Vestbo at qt.io
Wed Apr 7 12:09:52 CEST 2021
> On 27 Mar 2021, at 14:40, Giuseppe D'Angelo via Interest <interest at 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.
> Giuseppe D'Angelo | giuseppe.dangelo at 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 at qt-project.org
More information about the Interest