PDA

View Full Version : Draw Image into Pixmap/Image



ToddAtWSU
18th May 2010, 19:25
I have a logo image stored as a PNG file. I also have a subclassed QGLWidget which I can print or save to an image. I would like to display the logo image in a spot, like the bottom-right corner of the QGLWidget's pixmap. How do I draw the PNG file on top of the pixmap already rendered from the QGLWidget?

aamer4yu
19th May 2010, 06:56
In the paintEvent of the QGLWidget... first call the base class paint event,, and then draw the icon at the desired position in your subclass's paintEvent.