File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
doc/api/next_api_changes/removals Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,8 @@ Qt4-based backends
33The qt4agg and qt4cairo backends have been removed. Qt4 has reached its
44end-of-life in 2015 and there are no releases of either PyQt4 or PySide for
55recent versions of Python. Please use one of the Qt5 or Qt6 backends.
6+
7+ ``qt_compat.is_pyqt5 ``
8+ ~~~~~~~~~~~~~~~~~~~~~~
9+ This function has been removed due to the release of PyQt6. The Qt version can
10+ be checked using ``QtCore.qVersion() ``.
Original file line number Diff line number Diff line change 1717import sys
1818
1919import matplotlib as mpl
20- from matplotlib import _api
2120
2221
2322QT_API_PYQT5 = "PyQt5"
@@ -80,10 +79,6 @@ def _isdeleted(obj): return not shiboken2.isValid(obj)
8079 raise ValueError ("Unexpected value for the 'backend.qt5' rcparam" )
8180 _getSaveFileName = QtWidgets .QFileDialog .getSaveFileName
8281
83- @_api .deprecated ("3.3" , alternative = "QtCore.qVersion()" )
84- def is_pyqt5 ():
85- return True
86-
8782
8883if QT_API in [QT_API_PYQT5 , QT_API_PYSIDE2 ]:
8984 _setup_pyqt5 ()
You can’t perform that action at this time.
0 commit comments