[Interest] Are Qt.transparent and "transparent" different colors?

Alexander Dyagilev alervdvcw at gmail.com
Sat Mar 27 11:58:58 CET 2021


Hmmm... What is this enum for then?

On 3/27/2021 1:27 PM, Giuseppe D'Angelo via Interest wrote:
> On 27/03/2021 07:00, Alexander Dyagilev wrote:
>> Rectangle {color: "transparent"} - getting transparent rectangle
>
> This is fine.
>
>> Rectangle {color: Qt.transparent} - getting rectangle filled with white
>> color
>
> This one is illegal. You can't set an enum or an int to a "color" type 
> in QML.
>
> https://doc.qt.io/qt-5/qml-color.html
>
> You are getting an error message on the console.
>
> HTH,
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210327/0326d0b3/attachment.html>


More information about the Interest mailing list