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

Artem Marchenko 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

Best regards,

On Sun, Jan 12, 2014 at 1:41 PM, Antoine Reversat <a.reversat at gmail.com>wrote:

> Hi,
> 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.
> Antoine
> _______________________________________________
> SailfishOS.org Devel mailing list

Artem Marchenko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140119/7e49fa87/attachment.html>

More information about the Devel mailing list