This PR makes new APIs priority use than removed or deprecated APIs
to solves the following DeprecationWarnings of qtabrowser with QT_API=pyside2 or QT_API=pyside6.
Additionally, new set Filter Regular Expression is priority used than removed setFilterRegExp considering the possibility that PySide2/PyQt5 will report DeprecationWarning in the future.
Hi,
This PR makes new APIs priority use than removed or deprecated APIs to solves the following DeprecationWarnings of qtabrowser with QT_API=pyside2 or QT_API=pyside6.
QT_API=pyside2
QT_API=pyside6
I tested that this PR with the current master branch of QtPy (https://github.com/spyder-ide/qtpy/commit/53ce7b00f6cd90eb45e2b78bed953671841d4899) reports no DeprecationWarning on the following environments.