I want to associate a ProgreesBar to several functions (but they don't work at the same time). The point is that I have read that I should create a worker thread. On that worker thread I must include the call to the progressbar functions(step) and from the application create the thread. My doubts are:
1. how should I step the progressbar if I don't know how long the function takes;
2. the worker thread can be declared and used in a member function of the Dialog class which contain the progress bar? Otherwise, should I create a class for the worker thread?
The functions are called from the menu inserted in the dialog box.
Thank you very much for any tip.
1. how should I step the progressbar if I don't know how long the function takes;
2. the worker thread can be declared and used in a member function of the Dialog class which contain the progress bar? Otherwise, should I create a class for the worker thread?
The functions are called from the menu inserted in the dialog box.
Thank you very much for any tip.