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.