Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Reset Progress Bar
Forum Updated to NodeBB v4.3 + New Features

Reset Progress Bar

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.9k 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
    kbt90
    wrote on 24 Jun 2011, 21:21 last edited by
    #1

    Hello -

    I developed a progress bar in QTDesigner with the minimum value set at 0 and the maximum value at 100. When the user navigates to this particular widget, the progress bar updates correctly, ending at 100. If the user navigates away from the page and back to it, the value remains at 100. Because of this, it appears that the task is completed, even though it is still in the process of carrying out the task.

    I've tryed several different things upon the widget being shown, such as progressBar->setValue(0) and progressBar->reset(). I've looked at different references, but can't seem to find a solution. Any help would be much appreciated.

    Thanks,
    Katelyn

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on 24 Jun 2011, 22:01 last edited by
      #2

      a bit more code could help.
      In general, setValue is the right solution.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0

      2/2

      24 Jun 2011, 22:01

      • Login

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