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. QProgressDialog: Fit progress bar to window
Forum Update on Monday, May 27th 2025

QProgressDialog: Fit progress bar to window

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k Views
  • 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.
  • R Offline
    R Offline
    Remoneo
    wrote on last edited by
    #1

    Hi,

    I created a progress dialog and hide the cancel button:

    !http://i.imgur.com/hiZvqRY.png?1(Image)!

    In my opinion the progress bar is to short. Is there any possibility to fit the progress bar to the dialog (horizontally)?

    Remoneo

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rondog
      wrote on last edited by
      #2

      The space on the right is for progress text. It appears that the range and value are currently zero (green section in middle suggests this) so there is no text to display.

      If you turn off the the text (i.e. progressBar->setTextVisible(false); ) the size will be the width of the dialog.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Remoneo
        wrote on last edited by
        #3

        Thanks a lot!

        Remoneo

        1 Reply Last reply
        0

        • Login

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