[Qt-qml] Specific corners' radius

michael.brasser at nokia.com michael.brasser at nokia.com
Tue Apr 27 04:00:13 CEST 2010


Hi,

On 26/04/2010, at 11:50 PM, ext Fábio Rehm wrote:
Is there a way to specify which corners have radius on Rectangles?
Something similar to what we can do with CSS3 border-radius, some examples here:
  http://www.css3.info/preview/rounded-border/

I can mimic the first example but not the other four which specify (right / left) (top / bottom) corners radius.

That's correct -- Rectangle currently only supports setting a single radius that applies to all four corners. Probably the best way to achieve the same result in QML today would be to create a small source graphic with the desired corners and use BorderImage to load it.

If you'd like to see Rectangle support this in a future version, I'd recommend logging a suggestion at http://bugreports.qt.nokia.com.

Regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100427/132220eb/attachment.html 


More information about the Qt-qml mailing list