Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.10
-
None
-
8649e06a1 (dev), cf5276fbf (6.10)
Description
For consistent experience it might be good to have behaviour aligned between all the implementation of the util method createStandardContextMenu. So one can rely on patterns, instead having to learn for each widget what a method of the same name actually does.
While the docs state otherwise, QLineEdit, QPlainTextEdit, QTextEdit, but also QWebEngineView (though detail undocumented) all set the view instance as parent (comp. also https://bugreports.qt.io/browse/QTBUG-121698).
No clue about the transient window stuff. But would there not be need to have some info about the transient parent window for such popups? Like when there are multiple top-level windows with an app? In KDE people mentioned with Wayland with QMenu one should see to set parents, see https://community.kde.org/Guidelines_and_HOWTOs/Wayland_Porting_Notes#Popup_Menus
There has been related discussion on the respeciive review https://codereview.qt-project.org/c/qt/qtbase/+/499622 but it seems unclear if the problem was fully investigated, as "Just tested" does not tell what and how?