C
C
calculator2122021-11-09 09:07:04
Qt
calculator212, 2021-11-09 09:07:04

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

1 answer(s)
A
Alexander Ananiev, 2021-11-09
@SaNNy32

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 question

Ask a Question

731 491 924 answers to any question