P
P
PrCj2014-12-22 14:55:45
Programming
PrCj, 2014-12-22 14:55:45

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

2 answer(s)
A
Armenian Radio, 2014-12-22
@PrCj

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.

D
DancingOnWater, 2014-12-22
@DancingOnWater

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 question

Ask a Question

731 491 924 answers to any question