I have this problem
83:24: error: non-const lvalue reference to type 'QImage' cannot bind to a temporary of type 'QImage' cameraimplementation.h:23:34: note: passing argument to parameter 'nextImage' here
caused by this code
updateImageData(toQImage()); with
void updateImageData(QImage& nextImage); QImage toQImage(); How can I solve this other than including a temporary variable.
QImage image = toQImage(); updateImageData(image);
updateImageData(toQImage());? It updates an image that will be gone on the next linesaveImageDatawould be better?