Answer the question
In order to leave comments, you need to log in
How to make a thread-safe descendant of the QAbstractItemModel class in Qt?
Subject. Tell me in which direction to dig (or where you can peep raw)
Answer the question
In order to leave comments, you need to log in
It will be much better if you tell the whole problem. Otherwise, there is a risk that we will waste time here helping you sort the engine through the muffler.
Under which widget will the model lie?
Why is there multithreading?
And other interesting questions.
Define the model as if you don't care about thread safety. And then wrap the call of thread-safe methods with Qmutex.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question