[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: A problem with QPushButton on a plasma applet
From:       Toussis Manolis <manolis () koppermind ! homelinux ! org>
Date:       2008-05-18 11:54:06
Message-ID: 200805181454.07016.manolis () koppermind ! homelinux ! org
[Download RAW message or body]

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@kde.org
> > https://mail.kde.org/mailman/listinfo/panel-devel
>
> _______________________________________________
> Panel-devel mailing list
> Panel-devel@kde.org
> https://mail.kde.org/mailman/listinfo/panel-devel


_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic