Results 1 to 7 of 7

Thread: How to use QProgressBar correctly

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to use QProgressBar correctly

    If you want your progress bar centered on top of the main window, I'd suggest using the QProgressDialog again. Giving it the main window as parent will start it off centered over that widget, and if you want the window blocked you can set it to be modal, or non-modal otherwise.

  2. #2
    Join Date
    Dec 2010
    Posts
    76
    Thanks
    13
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to use QProgressBar correctly

    Thanks I will go ahead and use the QProgressDialog again, is there anyway to hide the buttons on the QProgressDialog? I know I can simply not react to any signal being sent by a click but I am curious if there is a 'hide' option. Thanks again for your help!

  3. #3
    Join Date
    Dec 2010
    Posts
    76
    Thanks
    13
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to use QProgressBar correctly

    I figured out how to remove the cancel button, setCancelButton(0) removes the Cancel button

Similar Threads

  1. setBar ( QProgressBar * bar )
    By hvw59601 in forum Qt Programming
    Replies: 7
    Last Post: 29th July 2010, 00:09
  2. Using QProgressBar
    By gutiory in forum Qt Programming
    Replies: 6
    Last Post: 5th May 2010, 06:59
  3. QProgressBar + Mac OS X
    By THRESHE in forum Qt Programming
    Replies: 5
    Last Post: 14th December 2007, 13:41
  4. QProgressBar confusion
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 23rd November 2006, 09:20
  5. QProgressBar & 200%
    By Dmitry in forum Qt Programming
    Replies: 2
    Last Post: 20th January 2006, 11:33

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.