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
For Gerrit Dashboard: PYSIDE-1750 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
417853,1 | Document QMouseEvent::pos() as deprecated in 6.0 | 6.1 | qt/qtbase | Status: NEW | +2 | 0 |
417027,2 | Document QMouseEvent::pos() as deprecated in 6.0 | dev | qt/qtbase | Status: MERGED | +2 | 0 |
417851,2 | Document QMouseEvent::pos() as deprecated in 6.0 | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
417852,2 | Document QMouseEvent::pos() as deprecated in 6.0 | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
417854,1 | Document QMouseEvent::pos() as deprecated in 6.0 | 6.0 | qt/qtbase | Status: ABANDONED | +2 | 0 |
417856,2 | Document QMouseEvent::pos() as deprecated in 6.0 | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
555005,3 | Revert "Document QMouseEvent::pos() as deprecated in 6.0" | dev | qt/qtbase | Status: ABANDONED | +1 | 0 |