Solved As in QML to do adaptive layout for 2 positions of the screen.
-
Good afternoon. If I could use if() in the ui file.qml, then it would be possible to set the width for each position, but ui.qml cannot be used if(). Please tell me how to make adaptive qml layout for 2 positions of the screen?
-
hi @Mikeeeeee
@Mikeeeeee said in As in QML to do adaptive layout for 2 positions of the screen.:
possible to set the width for each position
what do you mean ?
you can replace if statement with the conditionnal operator
property int position : 150 property int width1 : 33 property int width2 : 44 MyItem{ width : position < 50 width1 : width2 }