Search This Blog

Wednesday, June 24, 2009

Qt Transparent Background on Widget

It is very easy to make the Qt's widget transparent.
source code :

this->setWindowOpacity(0.5); //Make the widget half-transparent

For X11, Qt needs a composition manager. For Windows, it will just work.

This method is available for widget or subclass of widget. Under  module QtGui

No comments: