Results 1 to 2 of 2

Thread: Accessing android camera

  1. #1
    Join Date
    Jun 2015
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Accessing android camera

    Hello,
    I recently started using Qt and have been working on developing an android app. I looked at the sample camera app that uses the QtDesigner to make ui files but I could not get the camera to work on my phone. After researching this, I found that multimediawidgets does not work on Android. Redoing the app in qml is out of the question for me but I was wondering if there is a simple way to implement a camera operation into the app. Maybe adding a qml function to it?
    Thanks!

  2. #2
    Join Date
    Aug 2015
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Accessing android camera

    Hello,
    I have the same problem. I use Qt5 and I absolutely need to get the Camera Example working on Android. This Qt5 example use the classes QCamera, QCameraImageCapture and QCameraViewfinder. When I execute the example on my device, I only get a black screen :
    Screenshot_2015-08-19-12-03-53.jpg

    I'm asking myself, are these classes made to work under Android ? And if not so, how can I use the camera of my mobile (to take photos and videos) on Android with a full C++ Qt Widgets application (this condition is a mandatory constraint for me) ?

Similar Threads

  1. Replies: 1
    Last Post: 5th January 2015, 09:03
  2. Camera example application not working on android / HTC Flyer
    By Al_ in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 11th May 2014, 16:37
  3. QT in Android -- Example for accessing the GPS Service
    By qlands in forum Qt-based Software
    Replies: 4
    Last Post: 26th October 2013, 12:04
  4. Replies: 3
    Last Post: 9th April 2012, 00:50
  5. Accessing Symbian Camera trough QCamera
    By daleotar in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 25th September 2011, 17:18

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.