Re: Transient parent for QtWidgets popup menus

2017-06-07 Thread Elvis Angelaccio
On mercoledì 7 giugno 2017 19:56:59 CEST, Elvis Angelaccio wrote: On domenica 28 maggio 2017 10:37:40 CEST, Marco Martin wrote: On Sunday 28 May 2017 10:12:53 Elvis Angelaccio wrote: ... Any idea about drop menus? (i.e. QMenus usually created in some dropEvent() function). Even if they have a

Re: Transient parent for QtWidgets popup menus

2017-06-07 Thread Elvis Angelaccio
On domenica 28 maggio 2017 10:37:40 CEST, Marco Martin wrote: 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

Re: Transient parent for QtWidgets popup menus

2017-05-28 Thread Elvis Angelaccio
On domenica 28 maggio 2017 10:37:40 CEST, Marco Martin wrote: 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

Re: Transient parent for QtWidgets popup menus

2017-05-28 Thread Marco Martin
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 tran