[SailfishDevel] Detecting if running in emulator/debug mode in QML

Antoine Reversat a.reversat at gmail.com
Sun Jan 12 11:41:46 UTC 2014


I was wondering if there is a way to know if we're in debug mode or running
in the emulator in QML (something like the #ifdef QT_QML_DEBUG in c++). I'd
like to be able to act differently whether the app is running on a real
device or not.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140112/f3771c73/attachment.html>

More information about the Devel mailing list