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

Warning about deprecated AA_UseHighDpiPixmaps should be versioned

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.0.0
    • Core: Other
    • None
    • All

    Description

      Applications that need to build with both Qt5 and Qt6 are getting a ton of warnings such as

      warning: ‘Qt::AA_UseHighDpiPixmaps’ is deprecated: High-DPI pixmaps are always enabled. This attribute no longer has any effect. [-Wdeprecated-declarations]
         27 |     QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
      

      Using the versioned deprecation macros would allow users to disable deprecation warnings for Qt >= 6, saving them from ifdefing their code

      Assigning to "build system", since this applies to all enums, not just the HDPI ones

      Attachments

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

        Activity

          People

            cnn Qt Core & Network
            iamsergio Sergio Martins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes