Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. How to display UI progress bar
Forum Updated to NodeBB v4.3 + New Features

How to display UI progress bar

Scheduled Pinned Locked Moved Unsolved The Lounge
4 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    karthi shan
    wrote on 2 Dec 2015, 10:46 last edited by tekojo 12 Mar 2015, 08:33
    #1

    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++;
                                    }
    
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 2 Dec 2015, 23:29 last edited by
      #2

      Hi,

      You are modifying the same QProgressBar for every image. If you want one progress bar per image, you need to create them.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        karthi shan
        wrote on 3 Dec 2015, 07:49 last edited by
        #3

        Hi,

        How to do that one, please send some example.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 3 Dec 2015, 22:15 last edited by
          #4

          In fact, it seems you have a widget that should show that progress. You should then create as many of these widgets as needed.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          1/4

          2 Dec 2015, 10:46

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved