Results 1 to 2 of 2

Thread: Close child window notification in parent

  1. #1
    Join Date
    Jan 2010
    Posts
    3
    Platforms
    Windows

    Default Close child window notification in parent

    Hello all!
    Still a newbee, so be patient please
    I'm trying to capture, in a parent window, when it's child window is closed. Like that, in the parent class, I know when the window is closed and I can do stuff.
    How can that be done?
    Thanks in advance
    Regards
    Neil.

  2. #2
    Join Date
    Jan 2009
    Location
    The Netherlands and Spain
    Posts
    150
    Thanks
    6
    Thanked 18 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Close child window notification in parent

    In case of a modal dialog you use exec() to show the dialog. When it returns, you know it closed.
    This is in most cases what you want.

    In case of a modeless dialog, emit a signal to the parent, notfiying it is about to close.

    And of course, you read this:
    http://doc.qt.nokia.com/4.6/qdialog.html#details

Similar Threads

  1. Replies: 4
    Last Post: 3rd October 2009, 08:19
  2. Parent window over child
    By neolol in forum Qt Programming
    Replies: 4
    Last Post: 15th May 2009, 21:15
  3. Parent Child for window
    By febil in forum Qt Programming
    Replies: 6
    Last Post: 1st April 2009, 05:00
  4. connecting child to parent window...
    By sumit in forum Qt Programming
    Replies: 1
    Last Post: 19th October 2008, 21:28
  5. How to close parent window from child window?
    By montylee in forum Qt Programming
    Replies: 5
    Last Post: 14th October 2008, 11:40

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.