[Interest] custom widget with rounded border
Hamish Moffatt
hamish at risingsoftware.com
Tue Apr 2 10:14:07 CEST 2013
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 the rounded borders.
How can I avoid drawing over the borders?
thanks,
Hamish
More information about the Interest
mailing list