Transient parent for QtWidgets popup menus
Marco Martin
notmart at gmail.com
Sun May 28 08:37:40 UTC 2017
On Sunday 28 May 2017 10:12:53 Elvis Angelaccio wrote:
> createWinId();
>
> windowHandle()->setTransientParent(parent()->nativeParentWidget()->windowHan
> dle());
>
> Does it makes sense? Would it work?
As far i know, if a qmenu is passed a parent in the ctor, then at the right
moment a transientparent is set as well, that's why most of menus are ok.
for a general solution, tried to do this in Qt:
https://codereview.qt-project.org/#/c/195704/
--
Marco Martin
More information about the Plasma-devel
mailing list