I am currently working on a Java project using Qt Jambi for the UI. I am doing some calculations in a thread different from the UI thread and I would like to update the UI to indicate the progress.
It is clear that UI updates can only be done on the UI thread and since the computation thread is not the UI thread, I cannot perform updates on the UI from there (trying that consequently results in the QObject used from outside its own thread
error).
So, how can I call my updateUI()
method on the UI thread?