My next query is

Can we directly paint QDialog ?

I need to draw some arcs, squares and lines on QDialog