[Solved] Running function with QtConcurrent::run

I have a functionchar QTGUI_MainWindow::FormatSDcardForLivePause(void)
that I need to run in a separate thread and catch when it has finished without blocking the rest of the application.
I am trying as follows:

Thank you guys.
It is working now and the function perfectly runs in a different thread. Thanks also for the hint with the GUI-related classes. I had some output to the GUI that generated errors at runtime and did not show. Funny it did show once the GUI was hide and show again. So, if I need the output, I will have to implement something different.

However, I still have an issue with the FutureWatcher. The SLOT that should be called upon finished never gets called.