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

> On 11 Jun 2014, at 16:44, Ben Lau <xben...@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.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to