How to draw a rounded line shape using Qt??

How can I draw rounded line shape using QT. like this image.I need to design a rounded line when the button click. ...

Clear Transparent Background for QWidget?

I have a widget as on overlay for another widget. The transparency works fine, as long as I don't clear the backgrou...