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

List:       kde-devel
Subject:    Re: Transparency on Kickerapplets? How?
From:       Sebastian Wolff <sebastian.wolff () bauing ! uni-weimar ! de>
Date:       2004-09-23 16:20:00
Message-ID: 1095956400.4152f7b0212d6 () webmail ! uni-weimar ! de
[Download RAW message or body]


Thanks for the hint.
It was more complicated, though. class TaskBar doesn't use layout classes. Hence
things like mapToParent or X11ParentRelative didn't work. I used geometry() to
get the position on the parent and copied parent()->backgroundPixmap manually.

Well, one more example that Qt is far away from being perfect.

Regards
Sebastian

Quoting Dan Bullok <dan.kde@bullok.com>:

> I'm not sure if it's doing things exactly the way you want, but take a look 
> at how it's done in quicklauncher, specifically in
>      kdebase/kicker/applets/launcher/quickbutton.cpp
> Transparent rendering in QuickLauncher was broken for some corner cases 
> until KDE 3.3.  I fixed it sometime in June, but I can't remember exactly 
> what I changed.
> 
> -Dan
> 
> On Wednesday 22 September 2004 05:41 pm, Sebastian Wolff spake unto us 
> thusly:
> > I made a fork of the taskbar applet for kicker. I still fight against Qt
> > in convincing the task buttons to be transparent. I tried
> > setBackgroundMode(AncenstorsOrigin) and changed the paintEvent()
> > function. Well, QWidget::paintEvent seems to take the background, but at
> > wrong coordinates from the parent widget (namely the topLeft corner).
> > Moreover, to enable doublebuffered painting I need to access the
> > background pixmap for transparent painting. How to do so?
>  
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe
> <<
> 

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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