Update a window by a parallel process
-
I have an application where the user can launch a task that runs in the background. After launching the task the user can use the application in a normal way.
Now I want the background task that runs in a parallel process to show the progress on the user screen such as a text "Processed x/y". The message should be updated continuously not only when the control is handed over by Qt to the main process. Is this possible (on Windows)? -
Hi
it should be fine to send a signal from thread to mainwindow.
You might need to use the QueuedConnection flag when making the connection.So you can define your own signal with the needed info and the the slot in mainwindow
can then update the progress.This sample show such custom signal
http://doc.qt.io/qt-5.5/qtcore-threads-mandelbrot-example.html