Re: [Interest] custom widget with rounded border

2013-04-02 Thread Francisco Ares
Hi, I use to set the background and window palettes as transparent. Hope this helps Francisco 2013/4/2 Hamish Moffatt > Hi, > > I am building a custom widget descending from QFrame, because I want the > rounded borders and other behaviour. In my paintEvent, contentsRect() > gets me the rectang

[Interest] custom widget with rounded border

2013-04-02 Thread Hamish Moffatt
Hi, I am building a custom widget descending from QFrame, because I want the rounded borders and other behaviour. In my paintEvent, contentsRect() gets me the rectangle for the contents excluding the border, padding and margins but the rounded borders are inside that rect. So I am obliterating