Hello,

I'm building a gui over a library i have created.
I wanted to insert a progressbar. So what i was planning to do was: enter another parameter (int) by reference/pointer to the different functions i have in my library, so i can update that value while the procedure is running. This wont be such a problem I think.

But then: how can i tell the value has changed?
I thought about adding a timer in a thread who checks that value every 1 second or so.
Ok, so far so good: i created a QThread holding a timer but then i wanted to send a signal to the progressbar so the value is updated on the screen.

I added a signal in the thread and connected it, but appearently i can't define a signal in a qthread?

This seems a complex procedure to integrate this progressbar in the gui and to make it work.

Could there be a more convenient solution?

Thanx