Results 1 to 12 of 12

Thread: To use or not to use: deleteLater()

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    8
    Thanked 133 Times in 128 Posts

    Default Re: To use or not to use: deleteLater()

    Quote Originally Posted by codeslicer View Post
    So one time, I have an object defined in my header:

    Qt Code:
    1. ...
    2. private:
    3. settings settingsChanger;
    4. ...
    To copy to clipboard, switch view to plain text mode 

    The "settings" class is a QObject subclass that has a single QSettings object defined in the header and contains a variety of members to change values in QSettings. So, in my code after I'm done with settingChanger, naturally I want to delete it. So I use deleteLater() but my program just has a "signal" and the debugger stops it.
    oh i forgot to mention that you cannot delete objects which are on stack

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

    codeslicer (10th July 2009)

Similar Threads

  1. Replies: 4
    Last Post: 19th February 2009, 11:10
  2. QT deleteLater again.
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 10th May 2008, 22:36
  3. Qt Deletelater
    By bunjee in forum Qt Programming
    Replies: 2
    Last Post: 8th January 2008, 16:58
  4. DeleteLater works... but why?
    By TheGrimace in forum Qt Programming
    Replies: 11
    Last Post: 6th June 2007, 15:14

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.