[Development] Proposal: expose the OS/platform in QML

Robin Burchell robin+qt at viroteck.net
Wed Jan 16 08:58:23 CET 2013


On Wed, Jan 16, 2013 at 8:49 AM, Samuel Rødal <samuel.rodal at digia.com> wrote:
> These days you can't really tell from the resolution :) But I don't
> think Qt currently has a way to distinguish xcb/wayland running on a
> tablet vs a desktop, or eglfs running on a phone vs a tablet. How would
> a typical Android application make the latter distinction?

At least in the non-Android case, you're probably going to rely on the
platform port setting up some things giving you certain information.
Just like the default drag distance in Qt isn't suitable for all
devices out there.



More information about the Development mailing list