Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.2, 6.2.0
-
None
-
Ubuntu Hirsute
-
-
ae62122a8f (qt/qtdeclarative/dev) b8c5634911 (qt/qtdeclarative/6.3) 96e6dc253a (qt/qtdeclarative/6.2)
Description
When using fractional font sizes like 10.5, 11.5 etc the text gets elided even when not needed, the font size increases as well. I tracked it down to fontInfo not returning proper values on those controls. It seems that the control calculates the needed space with the proper font size and after that the text gets elided because it is rendered with a bigger font size.
It happens when A Text item is set on a Control.contentItem. Like used in the default RadioButton in QtQuick2.
I added a sample QML file which shows the issue.
Regards Usarin Heininga
Attachments
For Gerrit Dashboard: QTBUG-92006 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
375958,34 | QQuickText: fix fractional pointSize rounding error bug | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
375960,2 | QQuickText: Avoid loss in precision when assigning fractional point size | dev | qt/qtdeclarative | Status: ABANDONED | -1 | 0 |
398731,2 | QQuickText: fix fractional pointSize rounding error bug | 6.3 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
398732,2 | QQuickText: fix fractional pointSize rounding error bug | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
411948,1 | QQuickText: fix fractional pointSize rounding error bug | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: ABANDONED | -2 | 0 |