Closed GoogleCodeExporter closed 9 years ago
Interesting, I've never seen this behavior before. Can you describe your system
setup for specifically so I can try to reproduce it? Things that would be
helpful are:
- linux distro and version
- version of Qt
- font you are using (in case it is a calculation of text boundaries issue)
Original comment by evan.teran
on 3 Oct 2012 at 4:59
I too noticed this issue. I'm running Ubuntu 9.04 and Qt 4.6.2 at the moment
and used the default font (Monospace 8pt). I dug a little in the source and
interesting enough if I used width('0') as opposed to maxWidth() is stopped
doing it (even though a fixed width font like Monospace should have the same
width for every character and the two functions should have the same value).
Original comment by evan.teran
on 3 Oct 2012 at 4:59
fixed in SVN. I plan to do a release fairly soon. It is possible that this is
actually a bug in either Qt (since maxWidth() should never be larger than
width(ch)) or more likely a bug in debian's Qt packages since I've only been
able to reproduce on debian.
@John Martin: thank you for your research into the issue, my fix is actually to
just use "width('X')" instead of "maxWidth()" as you found that this works
around the issue.
Original comment by evan.teran
on 3 Oct 2012 at 4:59
Original comment by evan.teran
on 3 Oct 2012 at 4:59
Original issue reported on code.google.com by
evan.teran
on 3 Oct 2012 at 3:21