Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
6.2.2
-
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
- relates to
-
QTBUG-95310 QMouseEvent methods marked as deprecated in code aren't marked as such in docs
- Closed