How to make separate thread for a callback function using QtConcurrent?
Unsolved
Qt Creator and other tools
-
@Renu Why do you need a thread?
If you really need a thread then use a worker object which implements that slot and runs in another thread. The connect statement will make sure the slot is called in that other thread (don't use DirectConnection!). -
@Renu Why do you need QtConcurrent?
If you really want to use it you can call https://doc.qt.io/qt-6/qtconcurrent.html#run inside requestComplete to delegate the work to another thread.