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. Mac: can a progress bar be stretched/expanded?
Qt 6.11 is out! See what's new in the release blog

Mac: can a progress bar be stretched/expanded?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.6k 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.
  • I Offline
    I Offline
    igorland
    wrote on last edited by
    #1

    Hi. Another silly problem that I cannot resolve for many days already.

    In Mac, can I increase the width of a progress bar? I have a vertical progress bar. I set its width at 100. However, instead of stretching over the whole area, the progress bar itself remains a thin line, which width I cannot change with any parameter. I did not have this issue in Windows.

    Thank you!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you show the code where you setup/use your progress bar ?

      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
      • I Offline
        I Offline
        igorland
        wrote on last edited by
        #3

        Hi, SGaist. These are a few screenshots from the QtCreator showing how I draw a progress bar.

        https://www.dropbox.com/s/nxbhwliege3ag0w/shot1.png

        https://www.dropbox.com/s/cv9n2980s8hizpk/shot2.png

        https://www.dropbox.com/s/sc5acpcwl0qtx1h/shot3.png

        So, I want the progress bar to be expanded over the whole area (100x100). It works without a glitch in Windows. In Mac, it seems to retain the same size even if I increase the progress bar area.

        Thank you!

        1 Reply Last reply
        0
        • T3STYT Offline
          T3STYT Offline
          T3STY
          wrote on last edited by
          #4

          I'm not well informed in the subject but may I suppose it has a QSizePolicy that tells the progress bar to only resize vertically? In that case you should set a new size policy that allows for any direction resizing.
          Windows permits for progress bars to be resized both ways by default, maybe Macs are set not to behave this way...

          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