Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1750

QMouseEvent.pos marked as deprecated in source but not in docs

    XMLWordPrintable

    Details

    • Commits:
      bc676a7d7a (qt/qtbase/dev) bc676a7d7a (qt/tqtc-qtbase/dev) 893fd512c4 (qt/qtbase/6.3) 5fb72d4d03 (qt/tqtc-qtbase/6.2) 893fd512c4 (qt/tqtc-qtbase/6.3) 35d9de7082 (qt/qtbase/6.4) 35d9de7082 (qt/tqtc-qtbase/6.4) 5fb72d4d03 (qt/tqtc-qtbase/6.2.5)

      Description

      The pos method of QMouseEvent raises a deprecation warning, but is not deprecated according to the docs https://doc.qt.io/qtforpython/PySide6/QtGui/QMouseEvent.html#PySide6.QtGui.PySide6.QtGui.QMouseEvent.pos

       

      The warning can be reproduced by dragging the mouse in a window created by this code

      from PySide6 import QtWidgets
      
      class Window(QtWidgets.QMainWindow):
          def mouseMoveEvent(self, event):
              event.position()
      
      app = QtWidgets.QApplication()
      window = Window()
      window.show()
      app.exec()

        Attachments

          Issue Links

          For Gerrit Dashboard: PYSIDE-1750
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              mikolaj.boc Mikołaj Boc
              Reporter:
              numerlor Michal Laboš
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There is 1 open Gerrit change