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

Fix deprecation warnings in Qt Tools and compile with QT_DISABLE_DEPRECATED_BEFORE=0x060000

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P3: Somewhat important
    • 6.5.0 Beta1
    • 6.2.5, 6.3.1, 6.4.0 Beta2
    • None
    • All
    • e5fa1b1959 (qt/qttools/dev) e5fa1b1959 (qt/tqtc-qttools/dev)
    • Foundation Sprint 61, Foundation Sprint 62, Foundation Sprint 63, Foundation Sprint 64

    Description

      Patches for QTBUG-104857 introduce a lot of forgotten deprecation warnings for Qt 6.0. After all these patches are applied locally, qttools throws a bunch of deprecation warnings from the designer component.

      The scope of this task is to fix those warnings, and then try to build Qt Tools without the deprecated APIs. This can be done by specifying QT_DISABLE_DEPRECATED_BEFORE=0x060000

      Most, if not all, of the deprecation warnings come from QAction's menu-related APIs.

      Most of QAction's APIs have replacements. Exception is QAction::setMenu(), but it can be fixed by using the private API:

        QAction *myAction = ...;
        QMenu *myMenu = ...;
      - myAction->setMenu(myMenu);
      + QActionPrivate *p = QActionPrivate::get(myAction);
      + p->setMenu(myMenu);
      

      That shouldn't be an issue because we are anyway linking with Qt::GuiPrivate in all such cases, AFAICT.

      Attachments

        Issue Links

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

          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:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: