mgb_qt
22nd July 2010, 17:26
I have a camera grabbing frames at it's own fixed rate.
The camera API uses a C lib and a 'C' callback function when each new frame arrives.
it's a bit tricky to use the 'C' callback with Qt and signals so I thought of putting the camera into it's own thread, blocking on each new image and signalling the Qt app when there is a new frame to display.
Is QFuture appropriate for this?
It's not typical because it has no end, but it does have a continuously updating current 'result'.
The camera API uses a C lib and a 'C' callback function when each new frame arrives.
it's a bit tricky to use the 'C' callback with Qt and signals so I thought of putting the camera into it's own thread, blocking on each new image and signalling the Qt app when there is a new frame to display.
Is QFuture appropriate for this?
It's not typical because it has no end, but it does have a continuously updating current 'result'.