View Full Version : Semi transparent QDialog
cs_raja
22nd May 2007, 05:48
Hi I want a QDialog which shows the contents of its parent a main window.
Itried setOpacity() , setWindowOpacity(), auto backgorund false,
But It didnt work.
Some body help
Im using Qt 4.2.1 and Fedora 5
Thanks:) :)
wysota
22nd May 2007, 09:26
Does your window manager support compositions?
chaimar
23rd May 2007, 10:02
Hello,
I'm not sure if I understand you correctly. But you could set widget attribute to
WA_NoSystemBackground like this:
dialog->setAttribute(Qt::WA_NoSystemBackground);
In that way you'll see through the dialog and to the main window in the background.
marcel
23rd May 2007, 10:14
Desktop compositions are supported on X11( extensions need to be enabled ), OS X by default, and Vista only when enabling Aero.
Since you're using Linux, make sure you have enabled the composition in X11.
In xorg.conf add:
Section "Extensions"
Option "Composite" "Enable"
EndSection
Regards
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.