Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Use of deprecated function #152

Open
larsoner opened this issue Nov 28, 2022 · 1 comment
Open

BUG: Use of deprecated function #152

larsoner opened this issue Nov 28, 2022 · 1 comment

Comments

@larsoner
Copy link
Member

larsoner commented Nov 28, 2022

Our use of QMouseEvent in _mouseMove etc. is deprecated in PySide 6.4.1:

>>> from PySide6.QtCore import QEvent
>>> from PySide6.QtGui import QMouseEvent
>>> from PySide6.QtCore import Qt, QPointF
>>> pos = QPointF(288.683594, 4.558000)
>>> QMouseEvent(QEvent.Type.MouseButtonPress, pos, Qt.MouseButton.NoButton, Qt.MouseButton.NoButton, modifier)
<stdin>:1: DeprecationWarning: Function: 'QMouseEvent.QMouseEvent(QEvent.Type type, const QPointF & localPos, Qt.MouseButton button, QFlags<Qt.MouseButton> buttons, QFlags<Qt.KeyboardModifier> modifiers, const QPointingDevice * device)' is marked as deprecated, please check the documentation for more information.
<PySide6.QtGui.QMouseEvent(MouseButtonPress NoButton pos=288.684,4.558 scn=288.684,4.558 gbl=2.14748e+09,2.14748e+09 dev=QPointingDevice("core pointer" Mouse id=1))>
@larsoner
Copy link
Member Author

cross-ref https://bugreports.qt.io/browse/PYSIDE-2136?filter=-2 where this shows up as a SystemError in CIs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant