[Android-development] Qt 5.5 / Android / Device Camera

Frederik Gladhorn frederik.gladhorn at theqtcompany.com
Wed Sep 23 12:39:32 CEST 2015


Have you checked out QMultimediaWidgets? It's a separate library and should 
offer most of what you need for QWidgets.

http://doc.qt.io/qt-5/qtmultimediawidgets-index.html
http://doc.qt.io/qt-5/qtmultimediawidgets-camera-example.html

Cheers,
Frederik

On Monday, September 07, 2015 04:24:50 PM Darryl Hunter wrote:
> Hi all,
> 
> 
> 
> I note from a lot of Google searching that QML must be used if you want to
> use the Camera on an Android device.  I have been developing in Qt / C++ for
> a long time, but am new to QML / Android.
> 
> 
> 
> So I have created a Widget to display a QQuickWidget, which loads the
> declarative-camera example.
> 
> 
> 
> If I put this widget on the main window of my program, it works fine.
> 
> 
> 
> If I put this widget in a modal dialog activated from within my program
> (which I need, as I want an option in my app to take a photo), the dialog is
> not displayed.
> 
> 
> 
> I have found numerous reports of this problem, but no solution.
> 
> 
> 
> I have done lots of testing, and if I don't have the QQuickWidget, the
> dialog is shown; if I run on Windows, it's shown.  But Android and the
> QQuickWidget just doesn't want to work.
> 
> 
> 
> Has anybody managed to work around this?  Or is there a planned fix in the
> near future?
> 
> 
> 
> Any advice / suggestions greatly appreciated.
> 
> 
> 
> Thank you.
> 
> 
> 
> Darryl




More information about the Android-development mailing list