Qt-interest Archive, February 2007
progress bar
Message 1 in thread
Hi,
Can anyone plz. guide me with addition of a progress bar to my application?
My application reads a number of image files from a directory and does some
processing on them. I want to be able to show the progress of the
application while it's running. How do I do it?
Thanks,
Ashish
Message 2 in thread
Have a look at QProgressBar / QProgressDialog?
http://doc.trolltech.com/4.2/qprogressbar.html
http://doc.trolltech.com/4.2/qprogressdialog.html
Cheers,
Peter Prade
-----Ursprüngliche Nachricht-----
Von: Ashish Singh [mailto:mrasingh@xxxxxxxxx]
Gesendet: Dienstag, 27. Februar 2007 17:45
An: qt-interest@xxxxxxxxxxxxx
Betreff: progress bar
Hi,
Can anyone plz. guide me with addition of a progress bar to my application? My application reads a number of image files from a directory and does some processing on them. I want to be able to show the progress of the application while it's running. How do I do it?
Thanks,
Ashish
--
[ signature omitted ]
Message 3 in thread
I already did, but I was wondering how to know how much time a program would
take to complete.Are there any examples which show the usage?
Thanks,
Ashish
On 2/27/07, Peter Prade <prade@xxxxxxxxxxx> wrote:
>
> Have a look at QProgressBar / QProgressDialog?
>
> http://doc.trolltech.com/4.2/qprogressbar.html
> http://doc.trolltech.com/4.2/qprogressdialog.html
>
> Cheers,
> Peter Prade
>
> -----Ursprüngliche Nachricht-----
> Von: Ashish Singh [mailto:mrasingh@xxxxxxxxx]
> Gesendet: Dienstag, 27. Februar 2007 17:45
> An: qt-interest@xxxxxxxxxxxxx
> Betreff: progress bar
>
> Hi,
>
> Can anyone plz. guide me with addition of a progress bar to my
> application? My application reads a number of image files from a directory
> and does some processing on them. I want to be able to show the progress of
> the application while it's running. How do I do it?
>
> Thanks,
> Ashish
>
Message 4 in thread
Thanks Peter. I got it to work. I read that portion of the example
previously but didn't understand it. Now after going through it again, it
worked. I set the minimum and maximum of my progress bar to '0' and 'number
of files' and then in the for loop set the value of the progress bar to the
current file number.
-Ashish
On 2/27/07, Peter Prade <prade@xxxxxxxxxxx> wrote:
>
> Obviously you didnt read it!
>
> If you're too lazy to read it, how about searching for "example" on those
> pages?
>
> Peter Prade
>
> -----Ursprüngliche Nachricht-----
> Von: Ashish Singh [mailto:mrasingh@xxxxxxxxx]
> Gesendet: Dienstag, 27. Februar 2007 18:13
> An: qt-interest@xxxxxxxxxxxxx
> Cc: Peter Prade
> Betreff: Re: progress bar
>
> I already did, but I was wondering how to know how much time a program
> would take to complete.Are there any examples which show the usage?
>
> Thanks,
> Ashish
>
> On 2/27/07, Peter Prade <prade@xxxxxxxxxxx> wrote:
> Have a look at QProgressBar / QProgressDialog?
>
> http://doc.trolltech.com/4.2/qprogressbar.html
> http://doc.trolltech.com/4.2/qprogressdialog.html
>
> Cheers,
> Peter Prade
>
> -----Ursprüngliche Nachricht-----
> Von: Ashish Singh [mailto:mrasingh@xxxxxxxxx]
> Gesendet: Dienstag, 27. Februar 2007 17:45
> An: qt-interest@xxxxxxxxxxxxx
> Betreff: progress bar
>
> Hi,
>
> Can anyone plz. guide me with addition of a progress bar to my
> application? My application reads a number of image files from a directory
> and does some processing on them. I want to be able to show the progress of
> the application while it's running. How do I do it?
>
> Thanks,
> Ashish
>
>