I am newto Qt so i want to know about how to draw lines above a frame with background image with Qpainter. when i use painter(this) it draw over the main window which is hidden by the frame with background images. how can i overcome that. when i use painter(ui->frame) it doesnot work. pls help.