Posts

Showing posts from August, 2014

Qt Snippet: Create QPixmap with transparent background

Image
If you want to create a QPixamp object with transparent background you simply need to fill the entire area with transparent color immediately after created. After doing this you can start to draw over.



Qt Snippet: Draw into QPixmap

Image
Draw inside QPixmap can be made using QPainter object. Basically you have to pass to QPainter the pointer to your QPixmap (already created with fixed size) and you can draw inside as the same of window area painting.