Thank you.
Sigh.... when I was first reading about QT5 I read about deleteLater(), and then promptly purged it from my memory. Yes, that solves the actual abort issue. And if I had a memory myself wouldn't have troubled you. Thank you for the patience.
I'm less sure if it helps with memory, as the structure of the program is invoking a new set of widgets that cache images, and it won't return to the event loop until those are all created and the first ones displayed.
Though, to be fair, I'm still struggling to see how much memory any of this is really using, I think I need to spend some time on that issue before working too hard to fix a problem that might not be significant. What I did (while waiting for this solution) was do a setRowCount(0) on the QTableWidget, and hope that gave back memory, instead of deleting it.
Are there any good dynamic analysis tools that can instrument QT-specific programs to provide a view at runtime (during development) of object usage, object size, leaks, etc.? I know of some C++ tools for memory leaks of course, but wondered if there is anything more QT specific, that might also do things like indicate widget ownership nesting (or un-owned), sizing, visibility, etc? Or build-time options for QT itself (I am building QT from source) that adds some instrumentation.
I ask because about half the time when I spend a lot of time doing something manually I find there's an object or method already there I just missed.
So your signature line, Santosh, is very apt.





Reply With Quote


Bookmarks