How to properly use QThread for multi-threading?

How to properly use QThread for multi-threading?

328665042
Contributor Contributor
380 Views
0 Replies
Message 1 of 1

How to properly use QThread for multi-threading?

328665042
Contributor
Contributor

Hello everyone,

Recently, I'm working on my own c++ plugin with QThread.

I want to do some heavy calculating work on a sub-thread and updating the progressbar in the main UI by signal and slot.

I use the moveToThread method of QObject and it doesn't work as expected. It doesn't run the calculating work.

How to use it properly?

Can anyone give me a simple example ?

Thank you very much.

Yours,

Yixiong Xu

381 Views
0 Replies
Replies (0)