According to an article by @cfeck [1], QFontMetrics::width() gave the horizontal advance, which doesn't necessarily include every pixel that the text might use.
He suggested that boundingRect().width() might be what most people actually want.
Details
Details
- Reviewers
davidedmundson - Group Reviewers
Breeze Plasma - Commits
- R31:8a6f6851a49b: Fix QFontMetrics::width() deprecation warning by switching to boundingRect().
Diff Detail
Diff Detail
- Repository
- R31 Breeze
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.