Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QCamera
Forum Updated to NodeBB v4.3 + New Features

QCamera

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 4 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CptN3m0
    wrote on last edited by
    #1

    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?

    M 1 Reply Last reply
    0
    • O Offline
      O Offline
      ollarch
      wrote on last edited by
      #2

      Instead of asking for someone to code it for you, you could explain what you have tryied and which problems do you have

      C 1 Reply Last reply
      0
      • O ollarch

        Instead of asking for someone to code it for you, you could explain what you have tryied and which problems do you have

        C Offline
        C Offline
        CptN3m0
        wrote on last edited by
        #3

        @ollarch I tried a lot and tried each one signal which qcamera does have.

        1 Reply Last reply
        0
        • Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @CptN3m0 you may want to take a look at these other examples:

          1. QML Camera with preview
          2. 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)

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          2
          • C CptN3m0

            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?

            M Offline
            M Offline
            mchinand
            wrote on last edited by
            #5

            @CptN3m0, in that example Camera::processCapturedImage takes 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.

            1 Reply Last reply
            2
            • C Offline
              C Offline
              CptN3m0
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • Pablo J. RoginaP Offline
                Pablo J. RoginaP Offline
                Pablo J. Rogina
                wrote on last edited by
                #7

                @CptN3m0 so it looks like your issue is solved, right? If so, please don't forget to mark your post as such. Thanks.

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved