From 6d044df35d86d1a968ec229b77f19467d75431fa Mon Sep 17 00:00:00 2001 From: Julien Cabieces Date: Mon, 18 Dec 2023 12:19:54 +0100 Subject: [PATCH] Fix NULL QVariant --- python/PyQt/PyQt/QtCore.py.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/PyQt/PyQt/QtCore.py.in b/python/PyQt/PyQt/QtCore.py.in index 07f62b643ec..23cd7e64665 100644 --- a/python/PyQt/PyQt/QtCore.py.in +++ b/python/PyQt/PyQt/QtCore.py.in @@ -70,4 +70,7 @@ QVariant.__eq__ = __eq__ QVariant.__ne__ = __ne__ QVariant.__hash__ = __hash__ -NULL = QVariant(QMetaType.Type.Int) +if (QT_VERSION >= 0x060000): + NULL = None +else: + NULL = QVariant(QVariant.Int)