From 23f161bb7bc885597b8376be4629c15bdf78e964 Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Tue, 7 May 2024 00:13:55 +0200 Subject: [PATCH] QMouseEvent.globalPos() is deprecated -> replace with globalPosition().toPoint() It's deprecated since 6.0 and doesn't work at all with 6.6 See https://doc.qt.io/qt-6/qmouseevent-obsolete.html --- picard/ui/widgets/tristatesortheaderview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picard/ui/widgets/tristatesortheaderview.py b/picard/ui/widgets/tristatesortheaderview.py index b65321fc51..5ba29490e0 100644 --- a/picard/ui/widgets/tristatesortheaderview.py +++ b/picard/ui/widgets/tristatesortheaderview.py @@ -56,7 +56,7 @@ def mouseReleaseEvent(self, event): tooltip = _( "The table is locked. To enable sorting and column resizing\n" "unlock the table in the table header's context menu.") - QtWidgets.QToolTip.showText(event.globalPos(), tooltip, self) + QtWidgets.QToolTip.showText(event.globalPosition().toPoint(), tooltip, self) return if event.button() == QtCore.Qt.MouseButton.LeftButton: