qtsensors

Qt sensors module for QML and C++ sensor access

brewmacoslinux
Try with needOr install directly
Source

About

Provides access to sensors via QML and C++ interfaces

Commands

qtsensors

Examples

Access Qt sensors library in Qt/C++ projects via CMake$ find_package(Qt6 COMPONENTS Sensors REQUIRED)
Use sensors in QML applications by importing the module$ import QtSensors
Link sensors library to a Qt application$ target_link_libraries(myapp Qt6::Sensors)