Mac: can a progress bar be stretched/expanded?
-
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!
-
Hi,
Can you show the code where you setup/use your progress bar ?
-
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!
-
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...