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. Camera not working
Forum Updated to NodeBB v4.3 + New Features

Camera not working

Scheduled Pinned Locked Moved General and Desktop
camera
5 Posts 2 Posters 2.9k 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.
  • Andy314A Offline
    Andy314A Offline
    Andy314
    wrote on last edited by Andy314
    #1

    I have developped an windows desktop app and tested it on different PCs and one Tablet. All works correct here.
    Then I bought an other Windows 8.1 Tablet and here it works not.
    The camarea switches not from the State UnloadedState to the ActiveState.
    The camera ist ok, becaue other apps from the windows store can control it.

    What can I do to figure out whats the problem.

    1 Reply Last reply
    0
    • FranckynosF Offline
      FranckynosF Offline
      Franckynos
      wrote on last edited by
      #2

      Do you have some code ?

      Andy314A 1 Reply Last reply
      0
      • FranckynosF Franckynos

        Do you have some code ?

        Andy314A Offline
        Andy314A Offline
        Andy314
        wrote on last edited by Andy314
        #3

        Hi @Franckynos !

        The basis was the example integrated in the QtCreator.
        This program doesnt work too. It enables not the ImageTabpage because it receives not the State QCamera::ActiveState.

            connect(camera, SIGNAL(stateChanged(QCamera::State)), this,       SLOT(updateCameraState(QCamera::State)));
        

        A part of my code

            QCamera *Cam;
            Cam = new QCamera(QCamera::BackFace);
            if(!Cam->isCaptureModeSupported(QCamera::CaptureStillImage))
                CriticalDlg("Image capture not supported !");
            Cam->setViewfinder(ui->ViewFinder);
            Cam->setCaptureMode(QCamera::CaptureStillImage);
            Capture = new QCameraImageCapture(Cam);
            Capture->setCaptureDestination(QCameraImageCapture::CaptureToBuffer);
            Cam->start();
        

        I found out that my via USB connected LogitechWebcam works.

        1 Reply Last reply
        0
        • FranckynosF Offline
          FranckynosF Offline
          Franckynos
          wrote on last edited by
          #4

          For me with my cam, it works just for take a picture not a video.

          But there are a lot of problem with QCamera, many feature dosen't work for me.

          Camera exposure, flash, video ....

          Just take some pictures with it, and not to the maximum quality of camera! It's restricted :(

          Andy314A 1 Reply Last reply
          0
          • FranckynosF Franckynos

            For me with my cam, it works just for take a picture not a video.

            But there are a lot of problem with QCamera, many feature dosen't work for me.

            Camera exposure, flash, video ....

            Just take some pictures with it, and not to the maximum quality of camera! It's restricted :(

            Andy314A Offline
            Andy314A Offline
            Andy314
            wrote on last edited by
            #5

            @Franckynos
            Yes, I know video capture is not supported for windows.
            But, I fail already, by the simple camera initialisation. :-(
            An idears: driver - codecs missing, user right for camera, what can I do to find out what does not work ....
            If I can not solve the problem my whole project will break down.

            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