Sent: Monday, March 30, 2015 at 8:34 AM
From: "Lopes Yoann" <yoann.lo...@theqtcompany.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] QML Camera has flash?

On 27 Mar 2015, at 16:15, Jason H <jh...@gmx.com> wrote: 

>> How can I detect if the flash is even present? I have a logic path way that 
>> wants to collect non-flash and if present a flash image:   collectNonFlash() 
>> if >> (camera.hasFlash)  // - I wish this property existed.
>> collectFlash() 
>> However I don't see anything in QML that allows me to see if the flash is 
>> there or not.

> There’s currently no QML API to query flash capabilities. You can however use 
> the C++ API: QCameraExposure::isFlashModeSupported(). Testing for FlashOn is 
> enough to tell 

>> if the camera has a flash. Note that the flash APIs are currently not 
>> implemented on iOS, so it will always return false.
 
>> And, as a fall-back, if I can't detect it, I at least need to get the 
>> platform (iOS-iPad-model, Android-Nexus-9, etc) so that I can maintain a 
>> capabilities table. How can >> QML do that?

> AFAIK, you can only know the OS using ‘Qt.platform.os’
 
What? This is a pretty big issue if it is as big as I understand. Can QML on 
iOS control flash? Or do you mean something else? If my understanding of 
correct, when is the timeline for this feature to be implemented?
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to