No,the processing is performed in a seperate thread,but in the same application
No,the processing is performed in a seperate thread,but in the same application
Then you could just set the updated image on the label whenever your thread has signalled that it is finished.
No need to go through saving/loading a file, just creating a QPixmap from the QImage you are working on.
Cheers,
_
Have done something similar, reset the image everytime the processing completes.
But as the application is continuous running, the thread never finishes..but only on application exit.
If its a worker thread then you are doing something wrong and you have to go over the thread class and the threads object creation to figure it out.
When the Process that the thread is responsible for is done, delete the threads object and catch the threads finish signal.(you can emit your own finish signal).
Good Luck.
I have one GUI thread and one worker thread. Whenever I signal 'start' from GUI thread the processing starts in worker thread and whenever I signal 'stop' the processing in worker thread stops.
After signalling 'stop' the image has to be refreshed in the GUI,
But the image processing code of start and stop code has been enclosed in a while(1) loop,hence the thread never exits..but only on the application exit.
I need to process the image every 2-3 seconds,hence i have let the thread run thorughout the application.
Ok, but that has no relation to the image processing being done at some point, i.e. when you signal stop.
The thread stops accessing the image and you use it to update the label.
Cheers,
_
Bookmarks