PDA

View Full Version : paint events



freekill
18th February 2010, 00:35
Is it possible to have 2 paint events? One for the main window and another one for a dialog.

aamer4yu
18th February 2010, 05:58
Each QWidget has its own paint event.
What do you want to do ?

freekill
18th February 2010, 06:09
I wish to load an image from disk and set boundaries for the image by drawing a rectangle over the loaded image. I will then record the pertinent rectangle data (x,y,width,height) as these will serve as the accepted boundaries.

aamer4yu
18th February 2010, 06:29
There is an image viewer example in Qt Demos,,, Have you read its documentation ?