Results 1 to 2 of 2

Thread: [PyQT] QProgressDialog can't update during heavy work

  1. #1
    Join Date
    Jun 2009
    Posts
    4
    Thanks
    1
    Qt products
    Platforms
    MacOS X Windows

    Question [PyQT] QProgressDialog can't update during heavy work

    Hi, I'm using PyQT with Python 3.2. My program is going to read a lot of files(300+) in a directory and analyze them. This process may take several minutes. During the process, the GUI interface is completed frozen. I tried to add a progress indictor using QProgressDialog to show how many file have been processed. But the QProgressDialog can only show up and freeze again, until the whole reading process is over.

    I tried to use a separate thread or process to run the file processing work, but it won't help. The QProgressDialog window is still freezing......

    Would anyone give me a hint on how to do this? Thanks!

  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: [PyQT] QProgressDialog can't update during heavy work

    Read this article : Keeping the GUI Responsive

Similar Threads

  1. QWidget::update does not work!
    By sapali in forum Qt Programming
    Replies: 8
    Last Post: 17th March 2011, 16:56
  2. Replies: 0
    Last Post: 14th October 2010, 18:45
  3. PyQt what a great work!!
    By arkero24 in forum Qt Programming
    Replies: 0
    Last Post: 1st June 2010, 19:28
  4. Screen refresh during heavy computation
    By martinb0820 in forum Qt Programming
    Replies: 5
    Last Post: 17th November 2008, 22:20
  5. Application very heavy for lots object
    By Kapil in forum Newbie
    Replies: 1
    Last Post: 29th April 2006, 17: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.