PDA

View Full Version : query on QObject::deleteLater



rishiraj
20th March 2009, 07:14
(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.

wysota
20th March 2009, 08:42
Yes, you can use deleteLater().