Skip to content

Case-insensitive search fix breaks Maya 2022 (PySide2/Qt5) #173

@kikeda-falcons

Description

@kikeda-falcons

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions