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