Results 1 to 9 of 9

Thread: QProgressDialog stucks

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Posts
    43
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1

    Default QProgressDialog stucks

    Hey everyone I want to use a progressdialog in busy mode to run a process

    heres the code:

    Qt Code:
    1. QProcess *installproc = new QProcess(this);
    2.  
    3. QProgressDialog progress("Installing Package...", "Cancel", 0, 0, this);
    4. progress.setRange(0,0);
    5. progress.setWindowModality(Qt::WindowModal);
    6. progress.exec();
    7.  
    8. installproc->start(InstallPkgCom);
    9.  
    10. if (installproc->waitForFinished())
    11. {
    12. progress.close();
    13. }
    To copy to clipboard, switch view to plain text mode 


    the problem is that the dialog isnt closing with the process is finished..
    iv noticed that if i dont press cancel or do anythink on the dialog for about 10-15 secs, and then press cancel, the dialog closes and the process is finished

    so basically the process is running just fine even after the dialog shown up, but the dialog refuses to close when the process is finished.

    p.s sorry for my english :P
    Last edited by Mystical Groovy; 2nd October 2009 at 18:10.

Similar Threads

  1. Busy Indicator using QProgressDialog??
    By qtzcute in forum Qt Programming
    Replies: 13
    Last Post: 6th September 2011, 11:31
  2. How draw border in QProgressDialog?
    By kamlesh.sangani in forum Qt Programming
    Replies: 0
    Last Post: 5th June 2009, 11:32
  3. How to use a file to setup a QProgressDialog, Thanks
    By HelloDan in forum Qt Programming
    Replies: 20
    Last Post: 22nd February 2009, 07:55
  4. Replies: 2
    Last Post: 22nd January 2008, 15:15
  5. How to show QProgressDialog without cancel button
    By rajesh in forum Qt Programming
    Replies: 1
    Last Post: 30th January 2007, 09:53

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.