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
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
Does your window manager support compositions?
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.
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:
Qt Code:
Section "Extensions" Option "Composite" "Enable" EndSectionTo copy to clipboard, switch view to plain text mode
Regards
Bookmarks