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

    • Icon: Technical task Technical task
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.14
    • Qt RHI, Quick: SceneGraph
    • None

      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.)

        For Gerrit Dashboard: QTBUG-78610
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes