3
I usually develop focused to vertical orientation, but when I turn the device screen to horizontal, the elements are resized in an unwanted way, leaving some smaller than they really should be.
For example:
Rectangle
{
id: foo
width: parent.width * 0.8;
height: parent.height * 0.025;
}
In a 1024 x 600 device, when vertical foo
is 25px high, but when horizontal is 15px, which compromises the reading of possible texts within the Rectangle
.
It is possible to set a minimum size for when horizontal?
And how best to address screen orientation issues in QML?
Just one question, the use of this condition can compromise performance or it is only calculated when the Rectangle is created?
– Lucas Lima
Does not commit. All property values are Javascript expressions that are recalculated only when any of the operands changes. Is equivalent to its
width: parent.width * 0.8;
.– Guilherme Bernal