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

Fix use of deprecated API in wayland/custom-extension example

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 6.2
    • QPA: Wayland
    • None

    Description

      examples/wayland/custom-extension/client-common makes use of QExposeEvent::region(), which is deprecated:
       

       3982: /home/qt/work/qt/qtwayland/examples/wayland/custom-extension/client-common/customextension.cpp: In member function ‘virtual bool TestNamespace::CustomExtension::eventFilter(TestNamespace::QObject*, TestNamespace::QEvent*)’:
       /home/qt/work/qt/qtwayland/examples/wayland/custom-extension/client-common/customextension.cpp:86:33: warning: ‘const TestNamespace::QRegion& TestNamespace::QExposeEvent::region() const’ is deprecated: Handle QPaintEvent instead [-Wdeprecated-declarations]
          86 |         if (exposeEvent->region().isNull())
             |                                 ^
       In file included from /home/qt/work/install/include/QtGui/QPlatformSurfaceEvent:1,
                        from /home/qt/work/qt/qtwayland/examples/wayland/custom-extension/client-common/customextension.cpp:54:
       /home/qt/work/install/include/QtGui/qevent.h:567:27: note: declared here
         567 |     inline const QRegion &region() const { return m_region; }
             |                           ^~~~~~
       make[3]: Leaving directory '/home/qt/work/qt/qtwayland_qmake/examples/wayland/custom-extension/qml-client'
       

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes