Results 1 to 2 of 2

Thread: Concurrent progress reporting

  1. #1
    Join Date
    Jun 2008
    Posts
    88
    Thanks
    4
    Thanked 4 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11
    Wiki edits
    1

    Default Concurrent progress reporting

    I was wondering if anyone wanted to share some good progress reporting practices.

    Ideally I want a progress dialog that 'always' updates and can be canceled at any time during processing. The Qt implementation of the progress dialog kind of sucks. You can report progress, which triggers a repaint/update and you can poll the dialog to see if the cancel button has been pressed. Thats some lame old school CS thinking, that creates some pretty horrible user experiences with applications. There's nothing like an unresponsive application you can't cancel out of or tell if its still working to make you want to scream.

    It would be nice if we had a really solid/simple class that fires off a thread to do some work and pops up the progress dialog in case the user wants to cancel the job. That would be an awesome class to have built into Qt.

    Does anyone have an example of good progress reporting code? ie. fire off a worker thread to do the number crunching while keeping the progress dialog in the main thread so the user can cancel it at any time.

    Thats the jist of it of course but its such a common problem in applications that it would be nice to have someone post a good implementation.
    Last edited by chezifresh; 23rd June 2008 at 19:48. Reason: spelling error

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Concurrent progress reporting

    J-P Nurmi

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.