Answer the question
In order to leave comments, you need to log in
Is it possible to somehow optimize the memory with a large number of elements in the TreeWidget?
In general, the program builds quite a lot in memory and eventually starts to take up 3-4GB of memory (and then grows further), I wanted to know how to reduce memory consumption? At the moment, I only have the option of creating a temporary file / files and dumping some of the information into them and, if necessary (if the user opens a branch), load them into memory and build a tree on the go. What other ways are there for this?
Answer the question
In order to leave comments, you need to log in
Use your own model and view in QTreeView. Memory problems to solve at the model level.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question