I can’t seem to be able to associate QtConcurrent::run() with a method (function member of a class) only with a simple function. How can I do this?
With a regular function I cannot emit signals and its a drag. Why would anyone find this a better alternative to QThread is beyond me and would like some input.
Yes, this is possible (and quite easy).
Here is an example (from the Qt documentation):
Basically, all you have to do is pass a pointer to the object as the first argument and the address of the method as the second argument (followed by any other arguments).
See: https://doc.qt.io/qt-5/qtconcurrentrun.html