Hi Bas!
You can use the Qt Screen Type to check the screen dimensions and do a rough estimation of the diameter to decide whether a tablet or phone is used:
For example somehow like this:
import Felgo 3.0
import QtQuick.Window 2.2
App {
id: app
property real screenDiameter: Math.sqrt(app.width * app.width + app.height * app.height)
property real screenDiameterInMM: screenDiameter / Screen.pixelDensity
property real screenDiameterInInches: screenDiameterInMM / 10 / 2.54
property bool isTablet: app.screenDiameterInInches > 5.5
// ...
}
The calculated diameter doesn’t seem to be 100% correct in my tests (please correct me if I made a mistake in the calculation), but the check at least does the trick for me during some quick tests in the simulator.
Best,
Günther