Results 1 to 4 of 4

Thread: how to enable a timer in a non-gui thread?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    5
    Thanks
    3

    Default how to enable a timer in a non-gui thread?

    I have a non-gui thread to process db files , and I want a slot located in this thread to check the db files every a threshold assigned by a QTimer. the slot will emit a signal to post information to a gui thread to show db files' status. but the slot connected to this timer won't work in this thread.
    I don't want to use such soluton:
    this timer was located in the gui thread and was connected a slot located in that non-gui thread.

    how can I enable this timer in such non-gui thread in some other solution?

    any help will be appreciated!
    Last edited by zeopha; 3rd August 2008 at 20:05.

Similar Threads

  1. QSocketNotifier can not enable from an other thread.
    By dabiabilus in forum Qt Programming
    Replies: 4
    Last Post: 5th August 2008, 13:31
  2. Thread, Timer and Socket. Comuication problem
    By ^NyAw^ in forum Qt Programming
    Replies: 6
    Last Post: 17th January 2008, 16:48
  3. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  4. Replies: 10
    Last Post: 20th March 2007, 22:19
  5. Problem closing a QMainWindow in Qt4.2
    By ian in forum Qt Programming
    Replies: 11
    Last Post: 17th October 2006, 00:49

Tags for this Thread

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.