From f437d042fd7dbd2188cffe25f19c2460d515be0d Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Wed, 19 Aug 2026 08:47:19 +0800 Subject: [PATCH] Update Furious/Qt/QtGui.py Signed-off-by: Loren Eteval --- Furious/Qt/QtGui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Furious/Qt/QtGui.py b/Furious/Qt/QtGui.py index 4dbc6fb..4bda549 100644 --- a/Furious/Qt/QtGui.py +++ b/Furious/Qt/QtGui.py @@ -168,7 +168,10 @@ class AppQAction(Mixins.QTranslatable, Mixins.ThemeAware, QAction): if statusTip is not None: self.setStatusTip(statusTip) - # Handy callback to be able to link with lambda + # This is intentionally a strong reference for the QAction's lifetime. + # Current actions are scoped to an owning widget/menu. An application- + # lifetime action must never store a transient receiver's bound method + # here, or it will retain that receiver and its complete Qt object tree. self.callback = callback if shortcut is not None: