Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QT 5.4 Android device information
DmitryHome last edited by
hi. tell me how to take the information about the type of device (smartphone, tablet ...) in Qt 5.4 android or if that is possible in qml.
alexleutgoeb last edited by
In QML you currently only get the platform you're running on. For further details you can use the JNI interface to get the information out of Android's native classes and set them as Qt Quick context properties to use them in code (in V-Play we have some properties like the "screen diagonal":http://v-play.net/doc/vplay-gamewindowapplicationwindow/#diameterInInches-prop which can be used to differentiate between smartphones and tablets for example).