[SailfishDevel] Detecting if running in emulator/debug mode in QML
artem.marchenko at gmail.com
Sat Jan 18 22:30:52 UTC 2014
You can propagate C++ knowledge to QML, Antoine
For example setContextProperty #ifdef QT_QML_DEBUG
On Sun, Jan 12, 2014 at 1:41 PM, Antoine Reversat <a.reversat at gmail.com>wrote:
> 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.
> SailfishOS.org Devel mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel