Results 1 to 3 of 3

Thread: Strange inconsistency with QTimer

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Re: Strange inconsistency with QTimer

    I'm having some weird bugs with this program. I edited the configuration file, only leaving one widget in the layout, and the program complained that the definition for that widget didn't exist. Then I commented them all out but the last one, and it finds the definition fine. Weird. But that's not why I'm updating this. The timer for that single widget never fires at all. I call timer_->start() but it never fires.

    Here's how I initialize the timer.

    Qt Code:
    1. timer_ = new QTimer();
    2. timer_->setSingleShot(false);
    3. timer_->setInterval(update_->P2INT());
    4. QObject::connect(timer_, SIGNAL(timeout()), this, SLOT(Update()));
    To copy to clipboard, switch view to plain text mode 

  2. #2

    Default Re: Strange inconsistency with QTimer

    I figured this out.

Similar Threads

  1. Replies: 8
    Last Post: 27th March 2013, 11:51
  2. Extending QTimer()
    By rishid in forum Qt Programming
    Replies: 3
    Last Post: 7th August 2009, 01:59
  3. QThread/QObject and QTimer
    By swiety in forum Qt Programming
    Replies: 2
    Last Post: 25th January 2008, 08:37
  4. Replies: 5
    Last Post: 6th March 2007, 05:34
  5. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 12:54

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