Priority: P1: Critical
Affects Version/s: 5.12.0 RC2
Component/s: Widgets: Styles
Commits:25231c40489e54d57998fa44385ad832cc32b30d (qt/qtbase/5.12) 7024090e1dc7043e7a2a692ede105bcb7952781d (qt/qtbase/5.12)
https://codereview.qt-project.org/227511/ allows text in a QToolButton to elide. However, in some cases it causes a "premature" eliding. That means that even with preferred width, the QToolButton elides its text.
QTBUG-72226.zip contains a minimal application to reproduce the issue.
Key ingredients are:
- QToolButton in a QHorizontalLayout
- button has an icon
- button has text
- text contains a & (mnemonic)
- toolButtonStyle is Qt::ToolButtonTextBesideIcon
The issue was originally fount in Qt Creator's amend/commit editor (
QTCREATORBUG-21551). This is how it looks like: