A problem with QPushButton on a plasma applet

Toussis Manolis manolis at koppermind.homelinux.org
Sun May 18 13:54:06 CEST 2008


and e new screenshot after the workaround...
http://img254.imageshack.us/my.php?image=picta9.jpg

You clearly see that on QPushButton has focus on the "hidden" grey area... 
even the mouse pointer is outside the button border.

On Sunday 18 May 2008 13:50:03 Toussis Manolis wrote:
> 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
>
> _______________________________________________
> 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