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. Light sensing component utilization

Light sensing component utilization

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

    Hello there,
    For a while now I am trying to figure out either it is possible (preferably with Qt 5.13.0) to utilize the light sensing elements (photo transistor, diodes or resistors) that smart phones consist of (these normally near the ear speaker) to obtain the information about the luminosity level (doesn't even have to be in lux, any level is acceptable).
    I have come across the Qt sensors API, which also includes this class: https://doc.qt.io/qt-5/qlightsensor.html
    The problem is that I am not sure either it is in fact what I am looking for and I don't know yet hot to use it in the code.

    Taking under consideration my use case, I would really appreciate all help regarding this topic. The OS in which I need the functionality for is Android and iOS.

    lprzenioslo.zut.edu.pl

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From a quick look at the Qt Sensors module sources, there is support for the light sensor on Android but not on iOS, however it seems that using the light sensor is discourage by Apple and may get your app rejected.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved