lwz
22nd March 2014, 09:15
When QBrush uses setTexture(QPixmap &), how to set it transparent ?
I have tried this :
QPixmap pix("D:/1.png");
QBitmap mask= pix.createMaskFromColor(QColor(255,0,255),Qt::Mask InColor);
pix.setMask(mask);
it doesn't work.
I have tried this :
QPixmap pix("D:/1.png");
QBitmap mask= pix.createMaskFromColor(QColor(255,0,255),Qt::Mask InColor);
pix.setMask(mask);
it doesn't work.