mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-16 00:05:45 -04:00
QVariant::Type does not exist in PyQt6 as its been deprecated and replaced with QMetaType::Type. In order to avoid breaking PyQGIS API, we don't want to change all our functions to use QMetaType::Type instead of QVariant::Type (that can wait till QGIS 4.0). So instead we leave the c++/Qt 5 signatures as QVariant::Type, but accept QMetaType::Type values for these functions under Qt 6 builds.