Results 1 to 8 of 8

Thread: Implementing threads...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: Implementing threads...

    I mean a progress bar that doesn't fish
    Quote Originally Posted by triperzonak View Post
    what do you mean by non-fishing?

  2. #2
    Join Date
    Jun 2008
    Posts
    22

    Default Re: Implementing threads...

    I tried the non-finishing progress bar but it's just not showing in Linux.
    I am trying to have the progress bar in the status bar depicting the progress of the compile process. But I am not able to view this non-finishing progress bar when compile button is hit. The same thing is working in Windows but not in Linux.

  3. #3
    Join Date
    Apr 2006
    Location
    Minsk, Belarus
    Posts
    33
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    2
    Thanked 6 Times in 3 Posts

    Default Re: Implementing threads...

    It looks like paint events for progress bar are cached and are not processed because system is busy with other task (compiling), that's why you don't see progress bar.

    You can try to invoke method repaint() or QApplication::flush() or QApplication:rocessEvents() like:

    progressBar.setValue(i);
    progressBar.repaint();
    QApplication::flush();//this line is probably not necessary

    See Qt help for QCoreApplication::flush() method.

Similar Threads

  1. Replies: 8
    Last Post: 27th March 2013, 12:51
  2. signal and slot across threads having event loop
    By travis in forum Qt Programming
    Replies: 6
    Last Post: 6th November 2007, 00:56
  3. Once more: Threads in Qt4
    By high_flyer in forum Qt Programming
    Replies: 5
    Last Post: 9th August 2006, 19:35
  4. [QT4] threads, signals, and slots, please help.
    By ucntcme in forum Qt Programming
    Replies: 12
    Last Post: 25th January 2006, 15:23

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.