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

Setting RenderType on Controls 2 Textfield results in cut-off text on high-dpi displays

    XMLWordPrintable

Details

    Description

      In our application, we force the use of Native rendering for all our qml text items on windows, because qml does not do subpixel rendering of text in qt rendering mode and the text ends up looking blurry in comparison.

      However when setting the following on a controls 2 textfield:

      TextField {
      text: "wwww - This has native rendering"
      renderType: Qt.platform.os === "windows" ? Text.NativeRendering :   Text.QtRendering
      }

      Results in the following image:

      The first character is always cutoff by the padding.

      This only happens on my high-dpi display Dell laptop (which has a windows scaling of 150%).

      This also exposes a secondary issue - it's not currently possible to set Native Rendering  on the placeholder text and as a result looks out of place with all of our other text in our application.

       

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              lmv Luke
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes