[Qt-qml] Detecting platform in QML

Pelle Johnsen pelle.johnsen at gmail.com
Thu Jun 23 15:55:01 CEST 2011


Guess I'll map it from C++, but would be good to have access to these kind
of system properties (and maybe also environment vars) from QML in a later
version.

 -Pelle

On Thu, Jun 23, 2011 at 1:10 PM, <jens.bache-wiig at nokia.com> wrote:

> Not a silly question but I am afraid the answer is currently no. The QML
> language itself doest not provide you this functionality but it is possible
> to write a plugin in C++ that can provide it for you.
>
> Alternatively the Qt Quick desktop components provide a QStyleItem that can
> give you the currently running desktop style as a property. (as in
> "windows", "mac", "gtk", "oxygen")
>
> http://labs.qt.nokia.com/2011/03/10/qml-components-for-desktop/
>
> Regards,
> Jens Bache-Wiig
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110623/714687be/attachment.html 


More information about the Qt-qml mailing list