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

QQuickWidget does not handle DPI changes while program is running

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.1.0 Beta3
    • Quick: Widget
    • None
    • Windows

    Description

      QQuickWidget does not handle changes of system DPI while the program is running.

      Any changes of DPI while the program is running will results in bitmap scaling and result in low quality graphics and ruined font anti-aliasing. See attached image.

       

      Side node:

      Please consider having an option of turning off HighDPI scaling for QQuickWidget (or just change the scale of the root element), since QML can handle scaling by itself much better. At this point all the scaling issues in Qt 6 are preventing us from migrating from Qt 5, and there seems to be no way to override it and manually handle it correctly like we could in Qt 5. Would be awesome to have a per widget High DPI override, widget->setHighDpiScalingMode(Qt::InternalWidgetScaling) and Qt scaling would only resize the widget, but report the real pixel values to paintEvent, so the widget can draw itself to fill that area.

        

      Attachments

        Issue Links

          Activity

            People

              tvete Paul Olav Tvete
              jonaslarsson Jonas Larsson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: