Details
-
Suggestion
-
Resolution: Fixed
-
Not Evaluated
-
None
-
5.12.0, 5.12.1
Description
Letting the user decide about the QToolButton text eliding options would improve the usability of QToolButtons.
Currently the user has very little control over eliding. Moreover, the call to elidedText method does not seem to take line feeds ("\n") into account at all which essentially causes QToolButton text to be unnecessarily elided if it contains line feeds.
For instance a QToolButton with the text "ABCDE" could be drawn normally, not elided. In the meanwhile "ABCDE\nEDCBA" would appear elided even when the vertical space is sufficient to have it on two rows.
Run the attachment to reproduce.
Attachments
Issue Links
- relates to
-
QTBUG-72226 [REG 5.11 -> 5.12] QToolButton with icon and text prematurely elides text
- Closed
-
QTBUG-64132 QToolButton should elide text when width constraints prevent from showing whole text
- Closed