Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtSensor Plugin - supporting multiple types

QtSensor Plugin - supporting multiple types

Scheduled Pinned Locked Moved Unsolved General and Desktop
qsensor
2 Posts 2 Posters 19 Views
  • 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.
  • D Offline
    D Offline
    DigitalArtifex
    wrote last edited by
    #1

    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?

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

      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.

      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
      0

      • Login

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