[Interest] How to distinguish from iPhone screen type with Qt/Qml

Nuno Santos nunosantos at imaginando.pt
Fri Dec 7 00:39:18 CET 2018


Hi,

Thank you all for sharing your approaches. 

I found one approached shared at the end of the following bug report, by David Hess (which requires linking to gui-private) that seemed to me very simple but it is not fully working in my case.

https://bugreports.qt.io/browse/QTBUG-64574 <https://bugreports.qt.io/browse/QTBUG-64574>

By the way, on initial email subject there was a X missing! Sorry for that! :)

Best regards,

Nuno

> On 3 Dec 2018, at 12:47, ekke <ekke at ekkes-corner.org> wrote:
> 
> 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
>> Interest at lists.qt-project.org
>> https://lists.qt-project.org/listinfo/interest
> 
> _______________________________________________
> Interest mailing list
> Interest at lists.qt-project.org
> https://lists.qt-project.org/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20181206/d4c6c50b/attachment.html>


More information about the Interest mailing list