A problem with QPushButton on a plasma applet
Toussis Manolis
manolis at koppermind.homelinux.org
Sun May 18 12:50:03 CEST 2008
A fix I found :
QPalette pal1;
pal1.setColor(QPalette::Window,QColor(0,0,0,0)); //sets trasparent black
m_buttonNext->setPalette(pal1);
m_buttonNext->setBackgroundRole(QPalette::Window);
m_buttonNext->setVisible(true);
this draws a black transparent background fine... BUT I cannot understand
original problem AND even if the grey box doesnot appear, it still gets
events in the "hidden" grey box area (FOCUS, CLICK.. etc)
On Sunday 18 May 2008 13:43:18 Toussis Manolis wrote:
> The pic demonstrates my problem:
>
> http://img233.imageshack.us/my.php?image=pictu9.jpg
>
> I use QPushButtons on my applet... and I cannot get rid of the grey
> background boxes shown above.
> The boxes appear only if the geometry of QPushButtons is small, if I set
> them to let's say 64x64 pixels the grey background extension does not
> appear. _______________________________________________
> Panel-devel mailing list
> Panel-devel at kde.org
> https://mail.kde.org/mailman/listinfo/panel-devel
More information about the Panel-devel
mailing list