Hi everybody,

I have following scenerio...

show image
wait for some milisecond say 500 ms
again show image
wait for some milisecond say 500 ms
again show image
...

I m using QT-3.1 on Fedora Linux and written following code for showing image on QT Widget.

fm->setPaletteBackgroundPixmap(QPixmap("sample1.jpg") );
QApplication::eventLoop()->processEvents(QEventLoop::AllEvents, 100);
usleep(500);
fm->setPaletteBackgroundPixmap(QPixmap("sample2.jpg") );
QApplication::eventLoop()->processEvents(QEventLoop::AllEvents, 100);
usleep(500);
fm->setPaletteBackgroundPixmap(QPixmap("sample3.jpg") );
QApplication::eventLoop()->processEvents(QEventLoop::AllEvents, 100);
usleep(500);

Its working ok, but after say some hours, or some days application stucks on processEvents and won't work until i restart the appl or reboot the machine.


How could i resolve this issue? My application needs to work 24*7.

Hope everybody got my problem.

Thanks in advance.

-Niranjan.