Results 1 to 5 of 5

Thread: Parent window over child

  1. #1

    Question Parent window over child

    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)

  2. #2
    Join Date
    Oct 2007
    Location
    India
    Posts
    162
    Thanks
    20
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Parent window over child

    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.

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Parent window over child

    Quote Originally Posted by neolol View Post
    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)

  4. #4

    Default Re: Parent window over child

    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-p...ows-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

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Parent window over child

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Parent Child for window
    By febil in forum Qt Programming
    Replies: 6
    Last Post: 1st April 2009, 05:00
  2. connecting child to parent window...
    By sumit in forum Qt Programming
    Replies: 1
    Last Post: 19th October 2008, 21:28
  3. How to close parent window from child window?
    By montylee in forum Qt Programming
    Replies: 5
    Last Post: 14th October 2008, 11:40
  4. Set a window as child at runtime
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 26th November 2007, 09:30
  5. move parent window to the front.
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2007, 08:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.