PDA

View Full Version : Parent window over child



neolol
15th May 2009, 18:49
hi,

how can i get a parent window widget to be displayed over a child window widget when it is selected pls?

(i tried raise() but the parent window always stay behind its child)

montylee
15th May 2009, 19:09
you can try lower() on the child or you can just hide() the child and show() it again when required.
If you can tell us the exact thing you are trying to do, it would be better.

Lykurg
15th May 2009, 19:40
how can i get a parent window widget to be displayed over a child window widget when it is selected pls?

You cant! This question was asked recently... (use a parent less window)

neolol
15th May 2009, 21:35
ok, thank you

but with a parentless window a new button in the taskbar is created

i read http://www.qtcentre.org/forum/f-qt-programming-2/t-activating-multiple-windows-20944.html
the problem appears to be only on Windows, i hope that's a bug so it will be fixed, because there is no easy way to do that since raise() and lower() work only for children

wysota
15th May 2009, 22:15
No, it's not a bug. It is meant to be this way and it will not change because this is the expected behaviour in windowing systems.
1. top level windows which are not dialogs have taskbar entries
2. child windows are always above their parent windows.