Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73333

QToolButton eliding option editing

    XMLWordPrintable

Details

    • All

    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

        1. elided_toolbutton.zip
          3 kB
        2. qtbug73333_5120.PNG
          qtbug73333_5120.PNG
          10 kB
        3. qtbug73333_5124.PNG
          qtbug73333_5124.PNG
          11 kB

        Issue Links

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              miikapernu Miika Pernu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: