Results 1 to 6 of 6

Thread: Progress bar Vs loop...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,374
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Progress bar Vs loop...

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Aug 2012
    Location
    Paris
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3

    Default Re: Progress bar Vs loop...

    Thanks code_err, this is exactely what I needed...


    In fact, even if I don't use the QProgressBar, the code is frozen during the 'for' loops...
    No particular problem with this in the past, but now, since I want to use a 'Cancel' button, things are different...

    Best Regards,

    Stéphane


    PS : Also, thanks to Wysota

  3. #3
    Join Date
    Jan 2009
    Location
    The Netherlands and Spain
    Posts
    150
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    6
    Thanked 18 Times in 18 Posts

    Default Re: Progress bar Vs loop...

    If you want to keep your program resposive, then call qApp->processEvents(); inside the loop.

  4. The following user says thank you to boudie for this useful post:

    Rakma74 (1st October 2012)

  5. #4
    Join Date
    Aug 2012
    Location
    Paris
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3

    Default Re: Progress bar Vs loop...

    This is absolutely PERFECT !!

    Exactely what I needed... I tested it, it works perfectly and is so simple to implement...

    Thank you very much Boudie !!

Similar Threads

  1. How to use progress bar
    By bijay in forum Newbie
    Replies: 1
    Last Post: 28th March 2012, 11:44
  2. Replies: 4
    Last Post: 6th August 2011, 02:40
  3. Main loop thread loop communication
    By mcsahin in forum Qt Programming
    Replies: 7
    Last Post: 25th January 2011, 17:31
  4. Replies: 4
    Last Post: 11th March 2008, 12:44
  5. Reg - Progress bar
    By suresh in forum Qt Programming
    Replies: 1
    Last Post: 12th December 2006, 16:11

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.