[Qt-qml] Title bar in a rounded rectangle

Martin Jones martin.jones at nokia.com
Wed Sep 1 04:49:46 CEST 2010


On Wed, 1 Sep 2010 11:17:46 am ext Alex wrote:
> Hi all,
> 
> This is kind of a frivolous thing, but I thought I'd ask :-)
> 
> I haven't found a good way to create a rounded rectangle with a title
> bar, such as the following example:
> 
> http://development.lombardi.com/wp-content/uploads/2009/04/panelwithtitlean
> dbutton.png
> 
> Since it is not possible to round individual corners, I can't just put
> two rectangles in a Column.  BorderImage seems like overkill.
> 
> Is there a good way to do this?

BorderImage is exactly what we recommend for this kind of problem.

If you really want to avoid that then using rounded rectangles clipped by 
another item could give you what you want.

BR,
-- 
Martin



More information about the Qt-qml mailing list