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. QML Camera FrontFacing?
Forum Updated to NodeBB v4.3 + New Features

QML Camera FrontFacing?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 1.5k 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.
  • metaDomM Offline
    metaDomM Offline
    metaDom
    wrote on last edited by
    #1

    Hey guys,

    according to the documentation I it should be possible to change the camera position using "deviceId" or other parameters. Sadly none seem to be valid for me on latest Qt version, they are all red marked in the QML document.

    I simply want to display get the front facing camera on Android. Any help is appreciated! :)

    Camera {
        id: camera
        focus.focusMode: Camera.FocusAuto
    }
    
    VideoOutput {
        source: camera
        focus : visible
        anchors.fill: parent
        filters: [ codeFilter ]
    }
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      I can't test it right now but isn't the position property what you need ?

      Hope it helps

      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
      • metaDomM Offline
        metaDomM Offline
        metaDom
        wrote on last edited by
        #3

        Yeah either position or deviceId. Both are marked red tho...

        1 Reply Last reply
        0
        • metaDomM Offline
          metaDomM Offline
          metaDom
          wrote on last edited by
          #4

          "Fixed"

          Even when "position: Camera.FrontFace" is red marked, it still does actually work.

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

            Good !

            Since it's working now please mark the thread as solved using the "Topic Tool" button so other forum users may know a solution has been found :)

            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