Is it possible to have 2 paint events? One for the main window and another one for a dialog.
Is it possible to have 2 paint events? One for the main window and another one for a dialog.
Each QWidget has its own paint event.
What do you want to do ?
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.
There is an image viewer example in Qt Demos,,, Have you read its documentation ?
Bookmarks