PDA

View Full Version : qt 4.5 windows. Update window when something doing.



HardCore_Solder
20th May 2009, 11:58
Good day.
i have Qt 4.5 on Windows XP.
for example, i copy many files in a loop, and my window hangs, its didnt repaint.
if i put repaint() in loop, it'll be ok. But when i move window it will hangs again and didnt repaint.
what should i do or what i doing wrong?:)
thnx.

wagmare
20th May 2009, 12:14
do copying process in a seperate event loop ..
use QThread http://doc.trolltech.com/4.5/qthread.html

aamer4yu
20th May 2009, 12:39
Or may be simply you can call qApp->processEvents in between your loop :)

wysota
20th May 2009, 12:44
http://doc.trolltech.com/qq/qq27-responsive-guis.html

HardCore_Solder
20th May 2009, 12:59
thanks all! works great)