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 Unsolved General and Desktop
17 Posts 3 Posters 1.6k 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.
  • Negar_mgN Negar_mg

    @jsulm cameraaa.png
    it's Inactive.How do I enable it?

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #8

    @Negar_mg If you check https://code.qt.io/cgit/qt/qtmultimedia.git/tree/examples/multimediawidgets/camera/camera.cpp?h=5.15 you will see

    ui->captureWidget->setTabEnabled(1, (m_camera->isCaptureModeSupported(QCamera::CaptureVideo)));
    

    So, it sets the "Video" tab to enabled if m_camera->isCaptureModeSupported(QCamera::CaptureVideo) returns true. It looks like for your camera it returns false. I don't know what you can do to change this.
    Does your camera support video recording?

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    Negar_mgN 1 Reply Last reply
    0
    • jsulmJ jsulm

      @Negar_mg If you check https://code.qt.io/cgit/qt/qtmultimedia.git/tree/examples/multimediawidgets/camera/camera.cpp?h=5.15 you will see

      ui->captureWidget->setTabEnabled(1, (m_camera->isCaptureModeSupported(QCamera::CaptureVideo)));
      

      So, it sets the "Video" tab to enabled if m_camera->isCaptureModeSupported(QCamera::CaptureVideo) returns true. It looks like for your camera it returns false. I don't know what you can do to change this.
      Does your camera support video recording?

      Negar_mgN Offline
      Negar_mgN Offline
      Negar_mg
      wrote on last edited by
      #9

      @jsulm
      I tested this camera with opencv and it had no problem,
      On the other hand, I tested this program on a laptop, with a webcam, and it was the same.
      Is it possible that the problem is using Windows?

      jsulmJ 1 Reply Last reply
      0
      • Negar_mgN Negar_mg

        @jsulm
        I tested this camera with opencv and it had no problem,
        On the other hand, I tested this program on a laptop, with a webcam, and it was the same.
        Is it possible that the problem is using Windows?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #10

        @Negar_mg It should work.
        What Qt version and compiler do you use?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        Negar_mgN 1 Reply Last reply
        0
        • jsulmJ jsulm

          @Negar_mg It should work.
          What Qt version and compiler do you use?

          Negar_mgN Offline
          Negar_mgN Offline
          Negar_mg
          wrote on last edited by
          #11

          @jsulm
          qt creator 4.15.0
          kit=qt 5.12.11 MSVC2015 64bit

          jsulmJ 1 Reply Last reply
          0
          • Negar_mgN Negar_mg

            @jsulm
            qt creator 4.15.0
            kit=qt 5.12.11 MSVC2015 64bit

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #12

            @Negar_mg Can you try with more recent version (5.15.2)?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            Negar_mgN 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Negar_mg Can you try with more recent version (5.15.2)?

              Negar_mgN Offline
              Negar_mgN Offline
              Negar_mg
              wrote on last edited by
              #13

              @jsulm
              I'm trying now.

              1 Reply Last reply
              0
              • Negar_mgN Offline
                Negar_mgN Offline
                Negar_mg
                wrote on last edited by
                #14

                kit.png
                My program only has these kits. Can it be added to the new kit?

                jsulmJ 1 Reply Last reply
                0
                • Negar_mgN Negar_mg

                  kit.png
                  My program only has these kits. Can it be added to the new kit?

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #15

                  @Negar_mg said in qCamera:

                  Can it be added to the new kit?

                  Yes, install current Qt version for your compiler, then you should get a new Kit automatically.
                  If you used Qt Online Installer to install Qt, then you can use Qt Maintenance Tool (you can find it in the root folder of your Qt set-up, c:\qt).

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • Negar_mgN Offline
                    Negar_mgN Offline
                    Negar_mg
                    wrote on last edited by
                    #16
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • Negar_mgN Offline
                      Negar_mgN Offline
                      Negar_mg
                      wrote on last edited by Negar_mg
                      #17

                      Thank you for your help
                      I used Qt_5_15_2-Debug, but the part related to video recording is still inactive.
                      I encountered this error while using this kit:
                      Unsupported media type: "{32595559-0000-0010-8000-00AA00389B71}"

                      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