Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29610

Add Qt::HighDpiScaleFactorRoundingPolicy::Round to our Qt Quick project template

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • None
    • Quick / QML Support
    • None

    Description

      Consider adding QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Round); to main().

      Quoting esabraha from https://bugreports.qt.io/browse/QTBUG-96465?focusedId=602112#comment-602112 (emphasis added):

      Setting HighDpiScaleFactorRoundingPolicy::Round or similar would also get rid of scaling artifacts. I would actually recommend this as a general best practice, as applying a fractional scale to the full scene can give quite a few unwanted visual artifacts for UIs, which are expected to be pixel-perfect.

      Attachments

        Issue Links

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

          Activity

            People

              portale Alessandro Portale
              skoh-qt Sze Howe Koh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes