[Qt-interest] What is the use of QCoreApplication::processEvents()

Andreas Pakulat apaku at gmx.de
Mon Apr 6 15:39:39 CEST 2009


On 06.04.09 17:35:38, chandrasekar wagmare wrote:
> a fine example is my  file operation example

Thats not a good example when processEvents are really needed. In this case
you can move the reading of 1 line into a slot, which can be triggered
by a QTimer every n msecs. That would be a far cleaner solution, especially
as processing events can mean that totally unrelated parts of your
application are also executed (socket-notifier, output from an external
process, code related to something the user does in the gui).

Andreas

-- 
If you think last Tuesday was a drag, wait till you see what happens tomorrow!



More information about the Qt-interest-old mailing list