Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.8, 6.3.0
-
-
992a318d39 (qt/qtbase/dev) 992a318d39 (qt/tqtc-qtbase/dev) 763fb35d9d (qt/qtbase/6.4) 763fb35d9d (qt/tqtc-qtbase/6.4) 71be528e92 (qt/tqtc-qtbase/6.2) a067ae3d76 (qt/qtbase/6.3) a067ae3d76 (qt/tqtc-qtbase/6.3) 71be528e92 (qt/tqtc-qtbase/6.2.5)
Description
To display text in a grid and to determine font for the text QFontMetrics::horizontalAdvance() is being used to calculate stretch needed for view. But this seems that horizontalAdvance() is not giving right value which leads to cut off text, if view is vertically resized to small.
This problem happens only on Mac. Windows and Linux works fine.
Attached example reproduces this.
Just build build and run with Qt5.15.8 or 6.3 and resize vertically to see the issue.