[Qt-interest] Basic update() paint event question

chandrasekar wagmare sekarwagmare at gmail.com
Fri Jan 23 06:12:30 CET 2009


same thing once occur to me while updating Label text ... is the SLOT() is
very long ? or u calling in paintevent ... any where u try processEvent() or
try using threads .. i succeed in using threads for my long running slot ...


On Fri, Jan 23, 2009 at 5:35 AM, <andrew.m.goth at l-3com.com> wrote:

> Phil wrote:
> > Calling update() under QT3 used to work and reading the
> > documentation hasn't helped. How do I now force a paintevent
> > under QT4?
>
> http://doc.trolltech.com/4.4/qwidget.html#update
>
> "This function does not cause an immediate repaint; instead it schedules
> a paint event for processing when Qt returns to the main event loop."
>
> Are you returning to the Qt main event loop between calls to update()?
> If you're calling update() inside a loop, the updates won't actually
> happen until the loop ends.
>
> You could try using repaint(), but you should be able to use update().
> Let's figure out why it's not working for you.
>
> --
> Andy Goth
> <amgoth at link.com>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
CHANDRU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090123/8a87da42/attachment.html 


More information about the Qt-interest-old mailing list