[SailfishDevel] Managing screen resolution
fklebczyk at gmail.com
Fri Oct 11 05:25:42 UTC 2013
W dniu 11.10.2013 06:29, Seppo Tiainen pisze:
> The SailfishOS SDK (Qt5 Alpha) assumes a screen resolution of 854 × 480
> which is the same as on N9. It seems, however, the first Jolla device
> will have a 960 × 540 pixel display. How should one prepare for that? I
> have understood that the current advice is to use 16:9 aspect ratio and
> no hard-coding in number of pixels.
> But if you are porting an app that has been hard-coded for N9 screen
> size, what is the best approach?
> 1) Will there be a global parameter to fix the 'magnification'? (would
> be great!)
> 2) Is there any other way to fix the resolution easily?
> 3) Should the whole app UI be redesigned? (would be a lot of work...)
I suggest you to use Theme component and values from there (like
Theme.itemSize*). That way you are assuring your app will be resolution
independent (you don't know what kind of resolution will be used on
other Jolla devices in future).
More information about the Devel