How to Reduce the Memory when a Tab is closed
-
Hi..
I am just trying to create a Browser kinda Application. In that i use a Tab Widget and a WebView for loading the url's. When I am having more number of new tabs my memory keeps on increasing and if i am closing the tabs one by one, the memory didn't reduces. The memory is same untill i close the last Tab. I tried to solve it with the delete method in my Tabs closable slot. Even after this, the memory is not reducing. Any suggestions please.
Thanks & Regards
-
There is another way, "deleteLater()":http://doc.qt.digia.com/qt/qobject.html#deleteLater. I am not sure if it is better to use.
You may check if the object/s are deleted using the "destroyed() signal":http://doc.qt.digia.com/qt/qobject.html#destroyed
-
[quote author="Riz" date="1352706933"]Any suggestions please.[/quote]Use a proper tool to measure memory usage (valgrind, Purify or alike, not ps, the task manager or anything like that).
-
[quote author="Code_ReaQtor" date="1352708812"]There is another way, "deleteLater()":http://doc.qt.digia.com/qt/qobject.html#deleteLater. I am not sure if it is better to use.
You may check if the object/s are deleted using the "destroyed() signal":http://doc.qt.digia.com/qt/qobject.html#destroyed[/quote]
Hi.. Already I tried using deleteLater() method. When i tried using that deleteLater() method, I can't able to close a particular tab. If I close any one of the Tab, the Whole Application is getting closed.. :-(
-
[quote author="Lukas Geyer" date="1352718494"][quote author="Riz" date="1352706933"]Any suggestions please.[/quote]Use a proper tool to measure memory usage (valgrind, Purify or alike, not ps, the task manager or anything like that).[/quote]
Thanks for your suggestion. I am trying with the Windows Task Manager only. Need to Check with some other memory leakage tools.