Long term syncronous method calls to asyncronous because of GUI
What is best approach to convert synchronous C library method calls to asynchronous because they can take some time ? And this time GUI is frozen ... I know that best way is move library itself to asynchronous or move Qt based solution but this is not option ...
Re: Long term syncronous method calls to asyncronous because of GUI
Hi, you can call you library functions from an extra thread. This way the GUI thread would not block.
Ginsengelf
Re: Long term syncronous method calls to asyncronous because of GUI
While I personally like the approach suggested by Ginsengelf due to having full control with a custom thread, it could also be possible to simply use QtConcurrent::run().
Cheers,
_