Results 1 to 2 of 2

Thread: Why do we have nondestructive closing?

  1. #1
    Join Date
    Nov 2008
    Posts
    38
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Why do we have nondestructive closing?

    That QWidgets don't delete themselves when they're no longer needed bugs me, it plays all hell with RAII and needs nontrivial boilerplate code. Also, I've never got WDestructiveClose to behave as I expect it to.

    Can someone please explain to me the motivation for not making windows close destructively by default?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Why do we have nondestructive closing?

    Qt::WA_DeleteOnClose always worked fine for me.
    J-P Nurmi

Similar Threads

  1. Dialog is not closing
    By manmohan in forum Newbie
    Replies: 5
    Last Post: 1st December 2008, 17:04
  2. Ignoring "editingFinished" when closing application
    By ^NyAw^ in forum Qt Programming
    Replies: 5
    Last Post: 15th April 2008, 16:40
  3. closeEditor() not always closing QLineEdit
    By mclark in forum Qt Programming
    Replies: 8
    Last Post: 27th November 2007, 01:44
  4. closing dialog in hidden main Widget
    By Lele in forum Qt Programming
    Replies: 3
    Last Post: 6th December 2006, 10:35
  5. ActiveWindow changes after closing QFileDialog
    By mischi in forum Qt Programming
    Replies: 3
    Last Post: 13th July 2006, 12:45

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.