[Solved] Particular radius
-
wrote on 27 Jun 2011, 17:12 last edited by
how to get rettangle with just an radied angle?
as this:
http://imageshack.us/photo/my-images/846/immagineep.pngEdit: Moved to Qt Quick since OP wants to do this with QML. ZapB
-
wrote on 27 Jun 2011, 17:16 last edited by
you need only one rounded edge?
I think you then have to draw it by hand... -
wrote on 27 Jun 2011, 17:34 last edited by
Or split it into 4 rects and set a rounded corner on the lower left one. This will lead to some overdraw though.
Or use the BorderImage QML element.
Where are you wanting to do this (ie in a widget a QGraphicsScene or in a QML scene)?
-
wrote on 27 Jun 2011, 18:22 last edited by
BorderImage will work ok. Also you can draw border pixmap not only in QML, but in C++ too.
-
wrote on 28 Jun 2011, 09:17 last edited by
i can not do it. i will use an image! =) thank you!
-
wrote on 28 Jun 2011, 09:23 last edited by
Well, what did you try? What did not work?
-
wrote on 28 Jun 2011, 09:38 last edited by
i am making the rectangle with power point...
-
wrote on 28 Jun 2011, 12:57 last edited by
But how do you want to draw it? In a custom drawn widget? in QML? we need more info...
-
wrote on 28 Jun 2011, 15:07 last edited by
in qml!
-
wrote on 28 Jun 2011, 15:21 last edited by
OK, draw it in gimp/inkscape/whatever, export to some suitable format then use BorderImage element in QML.
If this was a QML problem it may have been more appropriate to post it in the Qt Quick forum.
-
wrote on 28 Jun 2011, 15:30 last edited by
i know. thank you
1/11