[Qt-qml] Detecting platform in QML
Pelle Johnsen
pelle.johnsen at gmail.com
Thu Jun 23 20:49:07 CEST 2011
Thanks,
I know it's not too difficult to do in C++ (I have lots of other C++ in the
project). Just found it a bit odd that these system things aren't available
in QML yet, as most other languages have this.
-Pelle
On Thu, Jun 23, 2011 at 7:03 PM, Artem Marchenko
<artem.marchenko at gmail.com>wrote:
> Hi Pelle
>
> It is unfortunately impossible. However it is pretty easy to add platform
> detection in just a few lines of C++. If your project is pure qml, you can
> do it even in the wrapping cpp using e.g. preprocessor macros -
> http://developer.qt.nokia.com/forums/viewthread/5862/#38285
>
> Best regards,
> Artem.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110623/bf52b396/attachment.html
More information about the Qt-qml
mailing list