What does .gu stand for?
For example:
ConditionalLayout {
name: "row"
when: layouts.width > units.gu(50) //right here
Row {
anchors.fill: parent etc....
application-developmentqmlubuntu-touch
What does .gu stand for?
For example:
ConditionalLayout {
name: "row"
when: layouts.width > units.gu(50) //right here
Row {
anchors.fill: parent etc....
Best Answer
gu is short for grid unit.
From the user interface manual:
So if you base all your measurements on GUs every device will look as intended.
Extra: for measurements smaller than 1 pixel you use "units.dp" in the same fashion.