Results 1 to 3 of 3

Thread: Multiple windows: hide parent when child shown, unhide when child closed

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,330
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Multiple windows: hide parent when child shown, unhide when child closed

    When you hide a parent window, all of its child windows are also hidden. If you want to hide and unhide windows, they either must be siblings (each children of the same parent) or be unrelated.

    You can implement closeEvent() for your search window to emit a signal that says "I'm about to close". Connect that signal to a slot in your main window that calls show().

  2. The following user says thank you to d_stranz for this useful post:

    LostSoul (25th February 2015)

Similar Threads

  1. Replies: 1
    Last Post: 21st May 2011, 23:53
  2. Child-Parent Widget??
    By anupamgee in forum Qt Programming
    Replies: 1
    Last Post: 11th May 2009, 13:17
  3. Parent Child for window
    By febil in forum Qt Programming
    Replies: 6
    Last Post: 1st April 2009, 05:00
  4. Replies: 11
    Last Post: 4th June 2008, 07:22
  5. Hide/unhide paragraphs in QTextEdit
    By mcostalba in forum Qt Programming
    Replies: 4
    Last Post: 16th April 2007, 11:02

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
  •  
Qt is a trademark of The Qt Company.