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

Hi,

Probably a silly question, but is it possible to detect the current platform 
from qml? E.g. Windows, Unix or Mac.

 -Pelle
<ATT00001..txt>

_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to