Results 1 to 3 of 3

Thread: endless thread

  1. #1
    Join Date
    Apr 2011
    Posts
    195
    Thanks
    49
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default endless thread

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: endless thread

    Ehm, a QTimer or even better: simply use QFileSystemWatcher! (Also works on directories...)

  3. The following user says thank you to Lykurg for this useful post:

    Qiieha (13th January 2012)

  4. #3
    Join Date
    Apr 2011
    Posts
    195
    Thanks
    49
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: endless thread

    Thank u. Your suggestions where very helpful!

Similar Threads

  1. Phonon endless stream - any phonon expert out there?
    By derektmm in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2011, 16:11
  2. Replies: 5
    Last Post: 22nd February 2011, 21:21
  3. Animate a plane along an endless line
    By plan_rich in forum Qt Quick
    Replies: 3
    Last Post: 31st December 2010, 12:11
  4. Replies: 9
    Last Post: 28th November 2009, 20:31
  5. endless recursion with QDir
    By roxton in forum Qt Programming
    Replies: 2
    Last Post: 16th January 2009, 23:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.