[Qt-interest] QProgressBar kind of functionality with QProgressDialog (Size of file being copied not known)

Chandru... sekarwagmare at gmail.com
Wed May 27 12:15:20 CEST 2009


then create your own QProgressDialog .. design a new dialog with the
QProgressBar() and some other widgets u need ..
      show() the dialog at the particular instance and hide()  it...

On Wed, May 27, 2009 at 3:16 PM, Andreas Pakulat <apaku at gmx.de> wrote:

> On 27.05.09 13:13:33, Usman Ajmal wrote:
> > I read the documentation. And as i pointed out in my first mail...i used
> > QProgress with minimum and maximum equal to zero, and it worked fine. But
> i
> > don't want a progress bar embedded in my GUI.
> >
> > I want a separate window or dialog to appear showing a progress bar with
> a
> > busy indicatior. QProgressDialog provides the dialog but the setMinimum
> and
> > setMaximum equal to zero is not giving the desired result.
> >
> > I hope i made myself clear.
>
> Then don't block the gui thread by doing someting like:
>
> while( s = readSomeLine() != "" ) {
>        dosomething();
> }
>
> Your original code has such a while loop just after creating the dialog,
> apart from not calling show() on the dialog either. So no wonder you don't
> see anything. Either split up the reading into chunks and schedule them via
> a timer, or move the reading into a separate thread - and don't forget to
> show the dialog.
>
> Andreas
>
> --
> You are always busy.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090527/5b5a93a0/attachment.html 


More information about the Qt-interest-old mailing list