ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #04414
Re: Setting app size on phone
On 01.10.2013 10:35, Sam Bull wrote:
> When running our app on the phone, it uses the size specified in the
> QML, and the app is displayed too small or too big for the phone screen.
>
> We are running this through C++, so my first thought is that qmlscene
> overrides the sizes (as we are using the same size as clock-app). If
> that's correct, is there something we need to do in the C++ to get it to
> override the size and display correctly?
http://qt-project.org/doc/qt-5.0/qtquick/qquickview.html#resizeMode-prop
Should help. You want SizeRootObjectToView, probably.
--
Michał (Saviq) Sawicz <michal.sawicz@xxxxxxxxxxxxx>
Canonical Services Ltd.
Attachment:
signature.asc
Description: OpenPGP digital signature
References