1
#include "pixmaputil.h"
6
QPixmap PixmapUtil::createTransparentPixmap(int width, int height)
8
// Now there's third alternative:
9
// QPainter p(&pixmap);
10
// p.fillRect(pixmap.rect(), Qt::transparent);
12
QPixmap pix(width, height);
13
QBitmap mask(width, height);
18
QImage img(width, height, QImage::Format_ARGB32);
20
QPixmap pix = QPixmap::fromImage(img);