Results 1 to 2 of 2

Thread: Problem with QProgressDialog

  1. #1
    Join Date
    Nov 2010
    Location
    Cienfuegos, Cuba
    Posts
    16
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Problem with QProgressDialog

    Hi, in my app I want to use a QProgressDialog without setting the range. It shows well but when the loop that is running ends the dialog dosn't close so is required to click on the cancel button. Some ideas?

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Problem with QProgressDialog

    If you call QDialog::accept() or QDialot::reject() after the loop, dialog will close. Show your code, it'll be easier to help.

  3. The following user says thank you to stampede for this useful post:

    anoraxis (8th April 2011)

Similar Threads

  1. QTreeWidget and QProgressDialog?
    By progman in forum Newbie
    Replies: 6
    Last Post: 18th March 2010, 18:05
  2. Problem with modal QProgressDialog
    By esterbonmati in forum Qt Programming
    Replies: 1
    Last Post: 15th January 2009, 11:59
  3. Need help in QProgressDialog
    By santhoshv84 in forum Qt Programming
    Replies: 3
    Last Post: 12th September 2008, 18:24
  4. QProgressDialog
    By samirg in forum Qt Programming
    Replies: 5
    Last Post: 5th September 2007, 16:37
  5. qprogressDialog
    By mickey in forum Qt Programming
    Replies: 5
    Last Post: 17th July 2006, 14:16

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.