PDA

View Full Version : how to set a child label transparent



qt_user
13th August 2010, 08:10
I ahve used the command:
this->setStyleSheet( "QFrame {border-image: url(:/images/background.png); }"); for displaying an image in the background.
Now when I create Labels(children) on the same widget(which is bordered), the labels also get bordered.........
I want to know How to set the Labels transparent without the use of the paintEvent function?

Lykurg
13th August 2010, 08:24
set a empty style sheet to the labels or use global QFrame > QLabel selector to set a null border.

qt_user
13th August 2010, 08:32
thanx.........I got it