[Development] QML Rectangle corner radius API for Qt 6.7
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Fri Dec 22 17:48:08 CET 2023
Il 22/12/23 17:08, Pierre-Yves Siret ha scritto:
>
> I wouldn't want a radii grouped property just because of its name.
> I much prefer writing topLeftRadius: 10 than radii.topLeft: 10.
> The pedantic latin syntax doesn't help with the readability. Maybe
> that's just because I am not a native English speaker.
>
It might be pedantic, but here's an excerpt from the docs:
> Individual corner **radii** can be set as well (see below).
Anyhow, something like:
borderRadius: { topLeft: 10; bottomRight: 10 }
(or cornerRadius or whatever) fixes the API issue I was mentioning, it's
discoverable, it's "obvious", has minimal impact (1 property on
Rectangle instead of 4), and it's also compact to write.
My 2 c,
--
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 - Trusted Software Excellence
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4244 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20231222/3771b68e/attachment.bin>
More information about the Development
mailing list