M
M
Mercury132021-09-01 08:19:01
Qt
Mercury13, 2021-09-01 08:19:01

What are the ways in Qt to synchronize a piece of code with an interface thread?

Actually, a question.
Would like to do something like

syncWithUi([](){
   someModel.beginResetModel();
   doSmthElse();
   someModel.endResetModel();
});


Task. Stop the interface thread, do something, start it again.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-09-01
@Mercury13

Signals.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question