Results 1 to 2 of 2

Thread: query on QObject::deleteLater

  1. #1
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    25

    Post query on QObject::deleteLater

    (Qt/S60)
    Hi everyone,
    I am designing a photo gallery application on Qt/S60 platform.When I open the Gallery for viewing,I am shown the first 8 pictures (which are pasted on top of 8 QPushbuttons and memory for them is allocated in the heap).When I click any of the pushbuttons,the pixmap displayed on top of it is shown in enlarged mode on top of a QLabel.After that, I've no more need for the 8 Pushbuttons,so,I want to get back the memory which I had initially assigned for them in the heap.

    Is it possible to use QObject::deleteLater for that purpose or, is there any other API .Thanks in advance for any suggestion.
    If everything seems to be going well, you have obviously overlooked something.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: query on QObject::deleteLater

    Yes, you can use deleteLater().
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    rishiraj (20th March 2009)

Similar Threads

  1. How to realize multi-threaded database query?
    By bangqianchen in forum Qt Programming
    Replies: 2
    Last Post: 14th November 2008, 08:15
  2. QTableWidget Sql Query 25.000 records
    By aekilic in forum Qt Programming
    Replies: 2
    Last Post: 12th August 2008, 15:54
  3. Problem with A SQLite Query
    By maveric in forum Qt Programming
    Replies: 1
    Last Post: 24th June 2008, 12:15
  4. Aborting a query set on a TableModel
    By Quid in forum Qt Programming
    Replies: 2
    Last Post: 5th July 2006, 23:36

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.