Message 1 of 1
How to properly use QThread for multi-threading?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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