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

    • 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)

      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()

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

            mikolaj.boc Mikołaj Boc (Inactive)
            numerlor Michal Laboš
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: