Results 1 to 9 of 9

Thread: How To Incorporate Progress Bar In Program

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    160
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    33
    Thanked 1 Time in 1 Post

    Default Re: How To Incorporate Progress Bar In Program

    Quote Originally Posted by jacek View Post
    The problem is that there is no feedback from that external process, so all you can do is say "i'm busy right now".
    Why not checking in a loop the output of the process, eg. the size of the generated file? Or maybe the process doesn't output anything at all.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: How To Incorporate Progress Bar In Program

    Quote Originally Posted by hickscorp View Post
    Why not checking in a loop the output of the process, eg. the size of the generated file?
    It's a good idea, but there are two problems:
    • cjpeg.exe might write to the output file when after it has done all of the time consuming operations,
    • you can't determine the size of the resulting JPEG file, so you won't know where 100% is.

Similar Threads

  1. how to embed an existing kde program into Konquerer
    By sephiroth_0 in forum KDE Forum
    Replies: 1
    Last Post: 15th August 2006, 12:21
  2. Release my simple program to other users ?
    By probine in forum Qt Programming
    Replies: 9
    Last Post: 9th July 2006, 23:42
  3. Replies: 1
    Last Post: 17th May 2006, 00:23
  4. preparing program for release
    By impeteperry in forum Installation and Deployment
    Replies: 5
    Last Post: 22nd April 2006, 19:30
  5. Enter key causing program to exit
    By welby in forum Qt Programming
    Replies: 2
    Last Post: 9th March 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.