×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,578

    What is the best way to check for support of a sensor in QML

    Hi

    Is there a way to query supported sensor types or get error information for sensors using QML?

    If not, what is the best solution? This article starts a 7 second timer when the Compass element is set active, and assumes it is either broken or not supported if the compass isn't providing readings within 7 seconds.

    I guess you could hide the compass until you start getting readings, but it seems a bit crap.

    Cheers
    H

  2. #2
    Nokia Developer Expert
    Join Date
    Sep 2011
    Posts
    382

    Re: What is the best way to check for support of a sensor in QML

    Hello,

    There will be , so far QSensor C++ -> QML seems to be the easiest way to go. The ones not found app can hide.

    /0

  3. #3
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,578

    Re: What is the best way to check for support of a sensor in QML

    Quote Originally Posted by Devnull View Post
    Hello,

    There will be , so far QSensor C++ -> QML seems to be the easiest way to go. The ones not found app can hide.

    /0
    Thanks very much. The explorer example seems to use C++ to get the sensor properties too so there isn't any evidence from this that Qt 5.0 will solve the problem in QML.

Similar Threads

  1. S60 5th J2ME sensor API support.
    By vaxon in forum Mobile Java General
    Replies: 3
    Last Post: 2011-09-12, 14:07
  2. Problem - how to handle Sensor class in S60 w no Sensor support?
    By d-safety in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2010-06-23, 13:31
  3. Sensor Support for Simulator/S60/Symbian^3
    By ianjwood in forum [Archived] Qt Mobility Project
    Replies: 1
    Last Post: 2010-05-07, 07:00
  4. Support for GPS and accelerometer sensor?
    By phishboh in forum Open C/C++
    Replies: 2
    Last Post: 2009-01-09, 09:25
  5. Does E60 (S60 3rd) support Mobile Sensor API (JSR 256)?
    By slowjoe in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2007-12-29, 19:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •