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

QToolButton eliding option editing

XMLWordPrintable

    • All

      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.

        1. elided_toolbutton.zip
          3 kB
          Miika Pernu
        2. qtbug73333_5120.PNG
          10 kB
          Miika Pernu
        3. qtbug73333_5124.PNG
          11 kB
          Miika Pernu
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes