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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes