A problem with QPushButton on a plasma applet

Toussis Manolis manolis at koppermind.homelinux.org
Wed May 28 21:57:53 CEST 2008


any news about that? should I open I bug report?

On Monday 26 May 2008 17:55:22 Marco Martin wrote:
> On Wednesday 21 May 2008, Alexis Ménard wrote:
> > Calling this on a QWidget remove grey boxes we have (if we talk about the
> > same boxes) :
> >
> > mWidget->setAttribute(Qt::WA_NoSystemBackground);
> > mWidget->setAutoFillBackground (false);
>
> i see a veeery weird problem with that (used also in Plasma::PushButton)
> the buttons gets painted without problems when the applet is on the desktop
> but on the panel don't get painted at all!
> i find the problem in qpushbuttons and qlineedits with qtextedit/ktextedit
> the text is painted fine (but never the box around the textbox)
> with qpushbuttons the button icon gets painted when the button is pressed.
> removing setAttribute(Qt::WA_NoSystemBackground); fixes the problem (but
> leaving of course the ugly gray box)
> i really don't know what to think anymore, i suspect something with argb
> visuals?, boooh :(
> could it be probably some obscure qt bug?
>
> Cheers,
> Marco MArtin
>
> > One example is notes applet wich call these two lines...It allow the
> > embeeded widget to be transparent...
> >
> > <br> :)
> >
> > On Wed, May 21, 2008 at 6:00 PM, Toussis Manolis <
> >
> > manolis at koppermind.homelinux.org> wrote:
> > > Also the hover event on the buttons happens only ON the buttons and not
> > > at the
> > > right of them too...
> > > So problem solved.
> > >
> > > On Wednesday 21 May 2008 18:55:59 Toussis Manolis wrote:
> > > > myButton->setMinimumSize(1,1)  in myapplet::init()
> > > > all work fine as you can see on the pic.
> > > >
> > > > http://img53.imageshack.us/my.php?image=pic1ku4.png
> > >
> > > _______________________________________________
> > > 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