Hi all,
Is it possible to make a QWidget showed (by invoking .show()) with transparent background?
I've read some related articles in the forum, and had tried some methods including:
1. setAttribute(Qt::WA_NoSystemBackground)
2. setStyleSheet("background-color: transparent")
3. In paintEvent: QPixmap pix(size()); pix.fill(Qt::transparent); painter.drawPixmap(0,0,pix);
But no one succeed, I tested above methods within Shaped Clock example (which is under QTDIR/examples/widgets/shapedclock). Under Windows XP, I got a black background, and under Ubuntu 8.10, i got a vague background.
Any sugguestion or help are welcomed, keep waiting online!
Bookmarks