Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-23770

Can not access secondary camera device using QML camera element

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.4.0
    • 5.2.0
    • Multimedia
    • None
    • 888759e

      I am trying to use QML camera element for taking pictures and directly using it in the application. I want to provide an option to the user to choose between the primary and secondary camera devices of the phone.
      By default the primary camera device is accessed by the QML camera element and there is no way to specify the secondary camera if the device has any.
      However on core side it is possible to get all the available camera devices using QCamera::availableDevices() API and the desired camera device can be set via constructor of QCamera class.
      How to do it in QML ?
      Any help on this is much appreciated.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ylopes Yoann Lopes
            suraj.pavaskar Suraj Pavaskar
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes