Results 1 to 6 of 6

Thread: Qt closeevent and garbage collection

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt closeevent and garbage collection

    QWidget internally having a garbage collector .so no need to destruct as the base widget will automatically clean its child and child's children recursivly ..
    if u feel uncomfortable of not setting any widget as a parent to the base widget use QSharedPointer to declare that widget ..
    "Behind every great fortune lies a crime" - Balzac

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

    ehnuh (2nd November 2012)

Similar Threads

  1. QList and garbage collection
    By zgulser in forum Qt Programming
    Replies: 3
    Last Post: 5th April 2012, 14:38
  2. Garbage collector - PyQt
    By janosimas in forum Newbie
    Replies: 0
    Last Post: 11th December 2011, 11:05
  3. Garbage collection
    By Septi in forum Qt Programming
    Replies: 5
    Last Post: 6th July 2010, 14:13
  4. QString, QStringList and garbage collection...
    By PaladinKnight in forum Newbie
    Replies: 4
    Last Post: 5th April 2010, 16:22
  5. question about garbage collection
    By Dumbledore in forum Qt Programming
    Replies: 4
    Last Post: 18th December 2007, 22:08

Tags for this Thread

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.