PDA

View Full Version : endless thread



Qiieha
10th January 2012, 17:35
Hi,
I have a gui and the gui should be never blocked.
Further I want to observe a directory. Every 10 seconds an observer has to check the director. If there is a file, the mainthread get involved.
What is the best solution to implement this. A QThread?

thank u

Lykurg
10th January 2012, 17:37
Ehm, a QTimer or even better: simply use QFileSystemWatcher! (Also works on directories...)

Qiieha
13th January 2012, 08:59
Thank u. Your suggestions where very helpful!