Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QCamera is not working on the Android

QCamera is not working on the Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 459 Views
  • 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.
  • L Offline
    L Offline
    legioner
    wrote on last edited by legioner
    #1

    Hi. This simple code not working in Android device.

    import QtQuick 2.5
    import QtQuick.Controls 2.5
    import QtQuick.Layouts 1.3
    import QtMultimedia 5.14
    
    Page {
        id: root
        anchors.fill: parent
    
        VideoOutput {
            source: camera
            anchors.fill: parent
    
            Camera {
                id: camera
                deviceId: QtMultimedia.availableCameras[1].deviceId
            }
        }
    }
    
    

    Emulator error:

    W GLConsumer: [SurfaceTexture-0-8868-0] bindTextureImage: clearing GL error: 0x502
    

    JDK 1.8.0_231
    SDK: 26.1.1
    NDK: 20.1.5948944
    QT 5.14.0

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Gwillz
      wrote on last edited by
      #2

      It's a bug in 5.14.
      https://bugreports.qt.io/browse/QTBUG-81006

      You can downgrade to 5.13 or wait until March for 5.14.2.

      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