Summary
The fix introduced in #166 (SG-41003) for case-insensitive search in PySide6
breaks search filtering in Maya 2022, which uses PySide2/Qt5.
Environment
Root Cause
The fix in #166 uses hasattr(QtCore, "QRegularExpression") to detect PySide6,
but QRegularExpression has been available since Qt 5.0 and is also present in
PySide2. This means the condition evaluates to True on both PySide2 and PySide6,
causing the Qt6-specific flag enums to be used on Qt5 where they are unavailable
or behave differently, breaking search filtering on older Maya versions.
Summary
The fix introduced in #166 (SG-41003) for case-insensitive search in PySide6
breaks search filtering in Maya 2022, which uses PySide2/Qt5.
Environment
Root Cause
The fix in #166 uses
hasattr(QtCore, "QRegularExpression")to detect PySide6,but
QRegularExpressionhas been available since Qt 5.0 and is also present inPySide2. This means the condition evaluates to
Trueon both PySide2 and PySide6,causing the Qt6-specific flag enums to be used on Qt5 where they are unavailable
or behave differently, breaking search filtering on older Maya versions.