Results 1 to 6 of 6

Thread: Find an allready running instances of a thread and connect to it

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Find an allready running instances of a thread and connect to it

    No, not that I know of.

    You have a simple problem, though. Use a factory to make all your threads and then you will only need a very simple observer mechanism to obtain knowledge of the running state of all threads.


    Can I put it to you that your question is not a 'good' one, though? By that I mean you are asking

    'I want to do X (because I think it is a solution to my problem). How do I do it?',

    but you would probably be better of asking

    'My problem is Y, what is a good way to solve it?'
    Last edited by amleto; 12th November 2012 at 19:24.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. QThread not running in different thread
    By lauwe in forum Qt Programming
    Replies: 2
    Last Post: 27th February 2011, 23:02
  2. Replies: 7
    Last Post: 4th June 2010, 14:52
  3. how to terminate a thread when it is running
    By guchangyuan in forum Qt Programming
    Replies: 1
    Last Post: 19th October 2009, 10:50
  4. running() - Thread
    By sabeesh in forum Qt Programming
    Replies: 5
    Last Post: 9th October 2007, 18:45
  5. QThread: Destroyed while thread is still running
    By Shuchi Agrawal in forum Newbie
    Replies: 8
    Last Post: 3rd April 2007, 06:27

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
  •  
Qt is a trademark of The Qt Company.