From f434884e6aa6f5ec20fc12f763e5d68306f73cb1 Mon Sep 17 00:00:00 2001 From: stonebig Date: Sat, 11 Dec 2021 20:36:39 +0100 Subject: [PATCH] 'width' need for PyQt6 same as PySide6 --- qtpy/QtGui.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qtpy/QtGui.py b/qtpy/QtGui.py index 253925c5..8faa724a 100644 --- a/qtpy/QtGui.py +++ b/qtpy/QtGui.py @@ -14,6 +14,7 @@ if PYQT6: from PyQt6 import QtGui from PyQt6.QtGui import * + QFontMetrics.width = QFontMetrics.horizontalAdvance # Map missing/renamed methods QDrag.exec_ = QDrag.exec