PDA

View Full Version : Transparency in Icons



mullwaden
15th August 2008, 10:15
I've got a set of icons (*.xpm) and they have a specific color that shows what is transparant. ie all areas that are colored an awfull green should be transparent. Is there any way to assign a specific color as transparent ?


EDIT

Got it to work with the following:
QPixmap icon("icons/out_mesh.xpm");
icon.setMask(icon.createMaskFromColor(QColor(0,255 ,0)));