Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, July 2006
avoiding multiple updates (flicker) ?


Message 1 in thread

I have a window with two frames in it.
only one frame is visible at the time, the other
one is hidden. They are both in a gridlayout.

Doing the following results in delayed (!) flicker:

win->setUpdatesEnabled(false);
win->frame1->hide();
win->frame2->show();
win->setUpdatesEnabled(true);

looks like that the changed geometry-calculations
are done at updatetime. :-(
can I force these calculations to be done in
my function above to avoid the flicker?

thank you.
Andreas.

--
 [ signature omitted ] 

Message 2 in thread

just a question to be sure...
why don't you put this two frames in a QStackedLayout to switch from one 
to other?


Andreas Wagner a écrit :

> I have a window with two frames in it.
> only one frame is visible at the time, the other
> one is hidden. They are both in a gridlayout.
>
> Doing the following results in delayed (!) flicker:
>
> win->setUpdatesEnabled(false);
> win->frame1->hide();
> win->frame2->show();
> win->setUpdatesEnabled(true);
>
> looks like that the changed geometry-calculations
> are done at updatetime. :-(
> can I force these calculations to be done in
> my function above to avoid the flicker?
>
> thank you.
> Andreas.
>
> -- 
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

--
 [ signature omitted ] 

Message 3 in thread

veronique.lefrere@xxxxxx wrote:

> why don't you put this two frames in a QStackedLayout to switch from one 
> to other?

hey cool! didn't know about the QStackedWidget before!
Using itsolves my problem!
But it would be interesting anyway how to reduce the
flicker in the other case.

Thank you veronique!

--
 [ signature omitted ]