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

App wizard prints Qt::AA_EnableHighDpiScaling deprecation warnings with Qt6

    XMLWordPrintable

Details

    • 013f2a9d7300c73a785d67313bcffd336e483e8f (qt-creator/qt-creator/4.14)

    Description

      HighDPIScaling has been enabled by default in Qt6 (https://codereview.qt-project.org/c/qt/qtbase/+/273952) and building Qt Quick apps with App Wizard print out issues tab with log:

      /home/mg/swipe_cmake/main.cpp:6: warning: ‘Qt::AA_EnableHighDpiScaling’ is deprecated: High-DPI scaling is always enabled. This attribute no longer has any effect. [-Wdeprecated-declarations]
      /home/mg/swipe_cmake/main.cpp: In function ‘int main(int, char**)’:
      /home/mg/swipe_cmake/main.cpp:6:40: warning: ‘Qt::AA_EnableHighDpiScaling’ is deprecated: High-DPI scaling is always enabled. This attribute no longer has any effect. [-Wdeprecated-declarations]
          6 |     QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
            |                                        ^~~~~~~~~~~~~~~~~~~~~~~
      

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            gronoff Mikko Gronoff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes