QML and platform defines
I'd like to adjust the behavior of the QML code based on the target platform. Font size, extra buttons for touch only devices, etc... The question is are there any platform defines available? For instance like Qt.Q_WS_X11 ?
I ended up supplying such a info as a global variable into QML from C++. I'd like to know if there's a way not requiring C++.
You may be able to solve it during compile time. If your final target is a normal app that runs QML, you can use C preprocessor or the make rules to include a platform specific Settings.qml (or Settings.xml)
unclewerner, how did you solve this problem?
I solved it here: http://developer.qt.nokia.com/forums/viewthread/5862/#38285