Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-74406 Abstract away the graphics APIs in Qt
  3. QTBUG-78610

Fix native text device pixel ratio handling on the QRhi-based rendering path

    XMLWordPrintable

    Details

    • Type: Technical task
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Fix Version/s: 5.14
    • Component/s: Qt RHI, Quick: SceneGraph
    • Labels:
      None

      Description

      Investigate dpr in native text rendering - left some todos in there due to some confusion in the OpenGL code path.

      There is a deeper problem here however: the native text implementation assumes that the device pixel ratio is available at the sync phase (e.g. in updatePaintNode). The dpr (that is then exposed via RenderState::devicePixelRatio()) is only calculated however (along with other sizes) by QQuickWindow before the render phase (not the least because it is simply not known before that point what the real render target is, e.g. is the renderer targeting a texture via QQuickRenderControl, or an actual window, etc.)

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              lagocs Laszlo Agocs
              Reporter:
              lagocs Laszlo Agocs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes