PDA

View Full Version : translucent background (on Gnome)



drus
31st May 2010, 08:23
Hello!

I'm trying to create widget with translucent background. Everything works fine under windows and linux/KDE. But on Gnome I just get a black background (not desktop image).

----
#include <QtGui/QApplication>

int main(int argc, char *argv[])
{
QApplication a(argc, argv);

QWidget w(0, Qt::FramelessWindowHint);
w.setAttribute(Qt::WA_TranslucentBackground);
w.show();

return a.exec();
}

----


Thanks!