Unsolved How to display UI progress bar
-
Hi All,
I am downloading image using FTP command, Images are downloading fine. 18 images are downloading so its take some time, i want to set progress bar for each image, but only one time progress bar is coming. I want that progress bar to be appeared for each image.
Here is my code:
if((img_check==0)&&(em_cnt<=18)) { QString empath; ui->progressBar->setValue(50); ui->progressBar->show(); QString Status_text = QString(" STARTING DOWNLOAD IMAGE FILE %1/18").arg(em_cnt); ui->display->setText(Status_text); empath=QString(tr("em:em:%2:21:/home/embdes/f%1.png")).arg(em_cnt).arg(CurIp); download.ftpimage(empath); PRINT<<em_cnt<<"empath="<<empath<<endl; empath.clear(); em_cnt++; }
-
Hi,
You are modifying the same QProgressBar for every image. If you want one progress bar per image, you need to create them.
-
Hi,
How to do that one, please send some example.
-
In fact, it seems you have a widget that should show that progress. You should then create as many of these widgets as needed.