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

TextEdit and Text elements lack visibleLines and maximumVisibleLines properties

    XMLWordPrintable

Details

    • 08bd83f5f1b738713e80bbfbd06468d27c5d3694, 82c0594ef35dbe9520da2f5e0900385c68f1cba5, 57ddd7c69705dfbf3d06b8a0157e5e706120c818

    Description

      1. Changing the layout and look&feel of your view depending on whether you have single line or multi-line text requires hacky height checks, which break change anything affecting the height, like the used font.
      -> read-only visibleLines property
      2. In mobile applications, you often want to limit the maximum number of lines due to limited screen estate available for UI elements. Again solving this with height checks is hacky.
      -> writable maximumVisibleLines property
      3. Also, the elide should work in Text element when maximumVisibleLines has been set.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              chham Christopher Ham (closed Nokia identity) (Inactive)
              jpetrell Joona Petrell
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes