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

UI string pixel size checking

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      All

      Description

      There are several ways to guarantee that localised texts fit into the available space in a QML UI:

      • Text.fontSizeMode
      • Text.elide
      • FontMetrics
      • Length variants for localised text

      However, there is no automatic way to check/test, if the UI text component width is large enough to contain the text without truncation/overflow. 

      Could we add this kind of a check into to phase, when we create the scene graph and layout the different UI items. There could be simple textual warnings, if truncation/overflow is detected. The idea is that the designer/developer does not have to run the UI/application and execute each and every branch to see visually, if the pixel width is correct. 

      It would be beneficial, if all localized texts could be tested in one test to avoid laborious manual work. 

        Attachments

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

          Activity

            People

            • Assignee:
              frederik Frederik Gladhorn
              Reporter:
              tpyssysa Tino Pyssysalo
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes