[Interest] How to distinguish from iPhone screen type with Qt/Qml
jhihn at gmx.com
Mon Dec 3 15:48:43 CET 2018
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 <ekke at ekkes-corner.org>
> To: interest at lists.qt-project.org
> 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:
> later will use mobile device types to better distinguish between
> different models
> best overview I found here: https://gist.github.com/adamawolf/3048717
> 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
> > Interest at lists.qt-project.org
> > https://lists.qt-project.org/listinfo/interest
> Interest mailing list
> Interest at lists.qt-project.org
More information about the Interest