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

Add proper support for height-for-width elements (or WFH) such as Text element

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Quick: Layouts
    • None

    Description

      In general, Text elements with wordWrap is badly supported by layouts (or rather, the layouts support it, but Text does not provide the info that the layouts need - a height-for-width function). Basically, Text elements with word wrapping will update their implicitHeight when an explicit width is set on them. This works for Text elements alone, but its not ideal for layouts. The problem is that Text elements assumes that the geometry (width) has to be applied first in order to get a sensible implicitHeight. This is the opposite of how layouts work, as they gather implicit sizes first, and then ultimately applies the geometries.

      Attachments

        Issue Links

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

          Activity

            People

              smd Jan Arve
              smd Jan Arve
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes