Qt-interest Archive, March 2007
Setting QProgressBar width in Qt 4.2.2
Message 1 in thread
I'm trying to set the width of a QListWidget and QProgressBar to the same
value so they're
aligned in a dialog box. Using identical calls (same width and xpos)
to ->setGeometry,
the QProgressBar is always 20-30 pixels smaller than the desired width. Is
this
a known bug or issue?
Thanks.
--
[ signature omitted ]
Message 2 in thread
On 3/26/07, John Smith <invalid@xxxxxxxxxxx> wrote:
> I'm trying to set the width of a QListWidget and QProgressBar to the same
> value so they're
> aligned in a dialog box. Using identical calls (same width and xpos)
> to ->setGeometry,
> the QProgressBar is always 20-30 pixels smaller than the desired width. Is
> this
> a known bug or issue?
On Windows, QProgressBar reserves about that much space to display the
progress value in a text label. Setting the `textVisible' property to
`false' will disable that.
However, I noticed you said you're manually setting the width and
position of your widgets. Is there a reason why you're manually
positioning widgets instead of just putting them into a layout and
letting Qt do the work for you?
--
[ signature omitted ]