QtSensor Plugin - supporting multiple types
Unsolved
General and Desktop
-
Are there any QSensor examples (source code or documentation) for supporting multiple sensor types in a single plugin? For reference it's an Absolute Orientation (9-axis) sensor that has a compass, gyroscope, accelerometer and a temperature sensor for good measure. Do I just create a backend for each generic type?
-
Hi,
I am not aware of any but from a quick look at the documentation, you can create one factory that returns different sensors. I think you just have to register each passing the same factory.