PDA

View Full Version : Two QLabels transparent to each other



augusbas
2nd November 2010, 08:30
Hi all,

I have two Q label placed one on other. Loaded "JPG" image on the labels of each.

I need to show them as transparent to each other.

How do i achieve this..


Regards,
Augus.

high_flyer
2nd November 2010, 12:52
JPG does not support transparency as IFAIK.
You will have to use another format, such as png.

augusbas
3rd November 2010, 04:46
JPG does not support transparency as IFAIK.
You will have to use another format, such as png.

Hi,

Ok i will use PNG format...

how do i enable transparency in QLabel..

Regards,
Augus

Lykurg
3rd November 2010, 06:19
See QWidget::setAutoFillBackground().