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

QtBase does not compile with QT_DISABLE_DEPRECATED_BEFORE = 0x060000

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.2.6, 6.3.2, 6.4.0 Beta3
    • 6.2.5, 6.3.1, 6.4.0 Beta1
    • Core: Other
    • None

    Description

      Note: currently I manually modify

      function(qt_internal_library_deprecation_level result)

      in qtbase/cmake/QtFlagHandlingHelpers.cmake to change the QT_DISABLE_DEPRECATED_BEFORE version.

      Many methods are deprecated, starting from Qt 6.0. In many cases the declaration in header files is properly guarded, but the definition in cpp files is not.

      Other problem is that in many places the code is still used, just wrapped into macros that silence the warning, for example:

      QT_WARNING_PUSH
      QT_WARNING_DISABLE_DEPRECATED
              dbg << "QExposeEvent(" << static_cast<const QExposeEvent *>(e)->region() << ')';
      QT_WARNING_POP
      

      As a result, when we enable QT_DISABLE_DEPRECATED_BEFORE = 0x060000 or higher, we get multiple build errors.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-104857
          # Subject Branch Project Status CR V

          Activity

            People

              ivan.solovev Ivan Solovev
              ivan.solovev Ivan Solovev
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes