Results 1 to 2 of 2

Thread: What to free or not to free, that is the question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Posts
    91
    Thanks
    21
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default What to free or not to free, that is the question

    When creating widgets in Qt, what do I need to free. Once I do the mainWidget.setLayout(layoutName), do I need to free any memory other than the widget itself? What about icon.setIcon(), does it take over the memory management for the icon?

    I'll just include a sample file. Have I forgotten to free anything in the attached module, as long as I free the parent widget in the calling routine?

    - BRC
    Attached Files Attached Files

Similar Threads

  1. Legal question about QT free edition
    By probine in forum General Discussion
    Replies: 10
    Last Post: 5th May 2007, 19:26

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.