Results 1 to 20 of 35

Thread: busy progress bar without thread ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #17
    Join Date
    May 2007
    Posts
    131
    Thanks
    17
    Thanked 4 Times in 2 Posts

    Default Re: busy progress bar without thread ?

    Qt Code:
    1. ui.initStatus->setMaximum(0);
    2. ui.initStatus->setMinimum(0);
    3. this->timer = new QTimer(this);
    4. connect(this->timer, SIGNAL(timeout()), this, SLOT(advanceProgressBar()));
    5. this->timer->start(100);
    6.  
    7. void advanceProgressBar(){
    8. qApp->processEvents();
    9. }
    To copy to clipboard, switch view to plain text mode 

    Don't work

    how...
    thanks!!
    Last edited by jpn; 4th December 2008 at 19:06. Reason: missing [code] tags

Similar Threads

  1. Problem closing a QMainWindow in Qt4.2
    By ian in forum Qt Programming
    Replies: 11
    Last Post: 17th October 2006, 00:49
  2. simple thread layout question
    By mhoover in forum Qt Programming
    Replies: 1
    Last Post: 12th August 2006, 11:02
  3. Replies: 11
    Last Post: 7th July 2006, 13:09
  4. [QT4] QThread and printing a QList<QPixmap>
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 24th April 2006, 21:44
  5. Replies: 2
    Last Post: 6th January 2006, 21:15

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.