fi0r
11th June 2010, 20:03
Hi,
I'm using two Dockwidgets one left one right, each docked. I'd like to have them both docked without filling the whole vertical space. When i change their size it shows only effect when non docked, so i tried to make their background transparent.
I tried
setBackgroundRole(QPalette::NoRole);
setWindowOpacity (0.5);
setAttribute(Qt::WA_TransparentForMouseEvents);
setAttribute(Qt::WA_TranslucentBackground);
and the setBrush on the background which just drawed the background black instead of transparent when non docked
and the setMask code from
t-qdialog-w-transparent-backgroundl (http://www.qtcentre.org/forum/f-qt-programming-2/t-qdialog-w-transparent-background-3757.html)
but none of it worked
is there any other possibility to adjust the size of a docked widget or setting its transparent?
I'm using two Dockwidgets one left one right, each docked. I'd like to have them both docked without filling the whole vertical space. When i change their size it shows only effect when non docked, so i tried to make their background transparent.
I tried
setBackgroundRole(QPalette::NoRole);
setWindowOpacity (0.5);
setAttribute(Qt::WA_TransparentForMouseEvents);
setAttribute(Qt::WA_TranslucentBackground);
and the setBrush on the background which just drawed the background black instead of transparent when non docked
and the setMask code from
t-qdialog-w-transparent-backgroundl (http://www.qtcentre.org/forum/f-qt-programming-2/t-qdialog-w-transparent-background-3757.html)
but none of it worked
is there any other possibility to adjust the size of a docked widget or setting its transparent?