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

List:       kde-devel
Subject:    Re: why doesn't this code paint on screen like it should?
From:       Mathias Homann <Mathias.Homann () eregion ! de>
Date:       2004-09-26 9:53:29
Message-ID: 200409261153.31410.Mathias.Homann () eregion ! de
[Download RAW message or body]

Am Sonntag, 26. September 2004 10:56 schrieb André Somers:
> On Sunday 26 September 2004 10:44, Mathias Homann wrote:
> > i can't see why this code doesnt draw in my window...
>
> Your basic problem is that you are painting on whatever kannasaver
> is, and not on the widget you create in the first line of code. On
> top of that, since the widget will handle it's own drawing, it will
> immediatly or at least very soon erase whatever you are drawing on
> it. In order to draw custom stuff on your widget, you need to
> reimplement it's ::repaint method. In that method, you first let
> the widget do it's own drawing (by simply calling the ancestors
> ::repaint method), and then draw your stuff on top of that.
>
> By the way, it is more of a Qt than a KDE programming problem.
> Maybe qt-interest@trolltech.com is the better mailinglist to use.


then, how do i just paint (draw text) on that window? its going to be 
a screensaver...

bye,
	MH

-- 
Die unaufgeforderte Zusendung einer Werbemail an Privatleute verstößt 
gegen  §1 UWG und 823 I BGB (Beschluß des LG Berlin vom 2.8.1998 Az: 
16 O 201/98). Jede kommerzielle Nutzung der übermittelten 
persönlichen Daten sowie deren Weitergabe an Dritte ist ausdrücklich 
untersagt!

gpg key fingerprint: 5F64 4C92 9B77 DE37 D184  C5F9 B013 44E7 27BD 
763C
 
>> 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