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

Warning about deprecated AA_UseHighDpiPixmaps should be versioned

XMLWordPrintable

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

      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

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

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

              Created:
              Updated:

                There are no open Gerrit changes