[Interest] QML Mobile controls

Ben Lau xbenlau at gmail.com
Wed Jun 11 17:45:52 CEST 2014


On 11 June 2014 23:18, Nurmi J-P <jpnurmi at digia.com> wrote:

> On 11 Jun 2014, at 16:44, Ben Lau <xbenlau at gmail.com> wrote:
> >
> > btw , I have another question for the solution. How will it handle the
> DP unit?
> >
> > Since the scaling using devicePixelRatio is still not implemented in
> Android yet (QTBUG-38252) , I wonder what should user do to make their
> application fit with DP after Qt 5.3.
> >
>
> Qt will extract appropriate style attributes from the platform using
> native APIs. Controls will use image assets extracted from the device, and
> any "dimensional" attributes are queried as pixel sizes. This means that
> controls should take care of scaling themselves as appropriate.
>
> --
> J-P Nurmi
>
>
That means user still need to take care of the DP unit for their own custom
component? I think it is ok but will it have any object to provide the
density value (android.util.DisplayMetrics.density)? Although it could
query the value by user's custom code , it is a bit of trouble to make a
component that fit in DP and display perfectly in Quick Designer.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140611/97bea6e7/attachment.html>


More information about the Interest mailing list