[Qt-interest] qprocess related with qprogressbar
Sean Harmer
sean.harmer at maps-technology.com
Thu Jun 25 11:40:06 CEST 2009
Hi,
On Thursday 25 Jun 2009 10:33:24 mierdatutis mi wrote:
> Hi,
>
> I have a QProcess that execute a shell script to get some datas. The
> process take about a minute or two minutes.
>
> How I don't know the time exactly that the shells-cript is long I have a
> Qprogressbar that have a 2 minutes counter.
>
> I would like if there is a way to can relate the qprogressbar with the
> qprocess for the qprogressbar shows exactly the qprocess lenght.
>
> Many thanks and sorry for my english!
You could modify your shell script to output some progress info (if it doesn't
already) to stdout or stderr and get your app to read in this output and parse
it in order to update the progress bar with real progress info rather than
just guessing.
Sean
More information about the Qt-interest-old
mailing list