[Interest] Are Qt.transparent and "transparent" different colors?
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Sat Mar 27 11:27:58 CET 2021
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,
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210327/32da89ce/attachment.bin>
More information about the Interest
mailing list