I write ALL my mobile apps in terms of display percentage. The Notch issue is particularly annoying because it behaves as if it doesn't exist, so you have to make a space reservation for it. It would help if the Qt QML global gave you the model, like Qt.platform.model so you could activate a top margin with a property binding. Ce'est la vie. You have to call a native platform function to do that...
> Sent: Monday, December 03, 2018 at 7:47 AM > From: ekke <[email protected]> > To: [email protected] > Subject: Re: [Interest] How to distinguish from iPhone screen type with Qt/Qml > > Hi Nuno, > one way is to detect from pixels > > perhaps this gives you an idea: > https://github.com/ekke/c2gQtWS_x/blob/master/cpp/unsafearea.cpp > > later will use mobile device types to better distinguish between > different models > best overview I found here: https://gist.github.com/adamawolf/3048717 > > ekke > Am 03.12.18 um 13:34 schrieb Nuno Santos: > > Hi, > > > > I’m trying to make my iOS apps ready for iPhone X screen as well as the new > > iPads. > > > > How can I distinguish the screen types? Can I do that directly from Qml? > > How? > > > > Thanks in advance! > > > > Regards, > > > > Nuno > > _______________________________________________ > > Interest mailing list > > [email protected] > > https://lists.qt-project.org/listinfo/interest > > _______________________________________________ > Interest mailing list > [email protected] > https://lists.qt-project.org/listinfo/interest > _______________________________________________ Interest mailing list [email protected] https://lists.qt-project.org/listinfo/interest
