In my program I have a function that runs a big number of calculations and gives some output on console. Now I create a GUI, I want to modify slightly the function to make it output all its progressions, to my GUI interface, which is another function. The function in question looks like:
It it easy to arrange these outputs on console. But quite complicated to do as to send outputs to another functions calling it (my GUI function)
I know for the loop part we can use callback. But here is mixed, I don't know how to do it. Could anyone please help me? Thanks!
Well actually it's not a Qt problem. The GUI works fine. I have my program originally worked on console. Now I want it send its outputs to a function (which calls the void Calcul()) instead of send it to console via iostream. So it's basically a C++ problem.