Hello every one,
I'm trying to implement the code from Qt example to mine - https://doc.qt.io/qt-5.10/qtmultimedia-multimediawidgets-camera-example.html. Can someone help me with an example, how can I, switch between captured images?
Instead of asking for someone to code it for you, you could explain what you have tryied and which problems do you have
@ollarch I tried a lot and tried each one signal which qcamera does have.
Pablo J. Rogina
@CptN3m0 you may want to take a look at these other examples:
- QML Camera with preview
- QML + OpenCV camera which has a (for me, bad called) "preview" page where the recently captured picture is shown
I guess that using example #1 as the foundation, you might easily implement the "review" feature you're looking for using the approach of example #2 but without messing up with OpenCV (I guess there's no need for that library in your case)
@CptN3m0, in that example
Camera::processCapturedImagetakes the most recently captured image and uses it for the pixmap of a QLabel. The main viewing area is a stacked widget that switches between this preview QLabel and the live view. Perhaps you could add a third stacked widget that contains a grid of QLabels containing thumbnail images of the all previous images.
I just got it myself, after I capturing an image, I save it inside mine vector and can get the path and the id for changing between the saved pictures.
Pablo J. Rogina
@CptN3m0 so it looks like your issue is solved, right? If so, please don't forget to mark your post as such. Thanks.