Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
6.7.2
-
None
Description
On Linux both methods `QMouseEvent::globalPosition()` and `QMouseEvent:position()` return local position (on Windows everything's fine):
from PySide6.QtWidgets import QApplication from PySide6.QtWidgets import QWidget class Widget(QWidget): def mousePressEvent(self, event): assert event.globalPosition() != event.position(), "same" def main(): app = QApplication([]) widget = Widget() widget.show() return app.exec() if _name_ == "_main_": raise SystemExit(main())