Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. unable to select BackFace camera on Surface Pro 4
Forum Updated to NodeBB v4.3 + New Features

unable to select BackFace camera on Surface Pro 4

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 820 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.
  • Sarah60S Offline
    Sarah60S Offline
    Sarah60
    wrote on last edited by
    #1

    Hi, I have a simple camera test app with a button to flip the camera from from the front facing camera to the back facing camera, but this does not work on a Surface Pro 4. It works on an iPhone 6. There are definitely 2 cameras available when I check QtMultimedia.availableCameras. Is this a known bug or is there something wrong with the following code? Thanks.

    Camera {
    id: camera
    captureMode: Camera.CaptureStillImage
    position: Camera.UnspecifiedPosition

        function flipCamera() {
            if (camera.cameraState !== Camera.ActiveState)
                return;
            
            camera.position = (camera.position === Camera.FrontFace ? Camera.BackFace : Camera.FrontFace);
        }
    }
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Are you using one of the Qt for Windows package or for WinRT ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Sarah60S Offline
        Sarah60S Offline
        Sarah60
        wrote on last edited by
        #3

        Hi, it's for Window 10 Enterprise edition, running on a Surface Pro 4

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then you will more likely have two items it in the list of available cameras.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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