Results 1 to 14 of 14

Thread: use Qtimer in gui application with some thread at background

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: use Qtimer in gui application with some thread at background

    k.qasempour, the question of the foundations of C++ : what happens with timer at line 11 ?
    Qt Code:
    1. for(link1 to link100)
    2. {
    3. .
    4. .
    5. .
    6. QHttp myHttp = new QHttp(some host);
    7. myHttp.get(some path)
    8. QTimer timer;
    9. connect(timer,SIGNAL(timeout()),this,SLOT(someslot ()))
    10. timer.start(5000);
    11. }
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to Lesiok for this useful post:

    k.qasempour (11th July 2012)

Similar Threads

  1. QTimer in a worker thread
    By inger in forum Newbie
    Replies: 6
    Last Post: 2nd November 2012, 12:37
  2. qtimer in console application
    By JeanC in forum Newbie
    Replies: 10
    Last Post: 31st March 2011, 15:30
  3. QTimer doesnt work or complains about thread
    By daemonna in forum Qt Programming
    Replies: 3
    Last Post: 1st September 2010, 16:00
  4. Replies: 9
    Last Post: 28th November 2009, 20:31
  5. QTimer - too many in application??
    By db in forum Newbie
    Replies: 4
    Last Post: 31st March 2008, 15:12

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.