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

List:       kde-devel
Subject:    Re: [TDG] Re: paintEvent problems - Regular Expression Widget
From:       Espen Sand <espen.sand () neo ! no>
Date:       2000-05-04 13:40:22
[Download RAW message or body]

On Thu, 04 May 2000, blackie@kde.org wrote:
>Espen Sand <espen.sand@neo.no> writes:
>
>| >I believe that I shouldn't call the paintEvent method myself, or am I
>| >totally wrong? 
>| 
>| I would think the paintEvent (or should we rename it painEvent :-) should be
>| called automatically, but anyway, I prefer to do such init stuff from a
>| reimplemented showEvent(..) when I think it is needed.
>
>So if I get you right, I should not put my stuff into the paintEvent, but
>rather put it into a doDrawNow procedure, and then make sure to call this on
>appropriate times? If so, when is it appropriate?

In the paintEvent and in the showEvent as well in this case since you can't get
the real paintEvent to do the job on startup. The real paintEvent works as it
should after startup, right?


-- 
Espen Sand

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

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