int main(int argc, char** argv){ QApplication app(argc, argv); QLabel win; QPixmap pix("41.bmp"); QPixmap alfaPixmap=pix.createMaskFromColor(QColor(102,204,51),Qt::MaskOutColor); pix.setAlphaChannel(alfaPixmap); win.setPixmap(pix); win.setMask(pix.mask()); win.show(); return app.exec();}