We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
addAction
1 parent 849a349 commit d8afeb0Copy full SHA for d8afeb0
qtpy/QtWidgets.py
@@ -14,11 +14,8 @@
14
from . import PYQT5, PYQT6, PYSIDE2, PYSIDE6
15
from . import QT_VERSION as _qt_version
16
from ._utils import (
17
- add_action,
18
getattr_missing_optional_dep,
19
possibly_static_exec,
20
- set_shortcut,
21
- set_shortcuts,
22
static_method_kwargs_wrapper,
23
)
24
@@ -212,8 +209,9 @@ def __getattr__(name):
212
209
"directory",
213
210
214
211
215
-# Make `addAction` compatible with Qt6 >= 6.3
216
-if PYQT5 or PYSIDE2 or parse(_qt_version) < parse("6.3"):
+# Make `addAction` compatible with Qt6 >= 6.4
+if PYQT5 or PYSIDE2 or parse(_qt_version) < parse("6.4"):
+ from ._utils import add_action
217
218
class _QMenu(QMenu):
219
old_add_action = QMenu.addAction
0 commit comments