Hello,
I have a camera whose generated images are stored as a QImage in my own "thread safe circular buffer".
I read that QImage is implicitly shared and hence I can access this QImage in other threads. But when I try to use QImage::scanLine to modify the buffer image, it internally calls QImage::detach and my program crashes and the debugger says QImage is invalid at this point.
I have read in so many places that there is no point in creating QSharedPointer<QImage> since internally QImage already does that.
What would be a good way to handle this? It would be great if someone can share their experience..
Regards
Vikram
Bookmarks