The Following 2 Users Say Thank You to pichlo For This Useful Post: | ||
|
2018-09-28
, 17:36
|
Posts: 339 |
Thanked: 1,623 times |
Joined on Oct 2013
@ France
|
#2
|
The Following 2 Users Say Thank You to Zeta For This Useful Post: | ||
|
2018-09-28
, 18:10
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#3
|
property alias rect1: myRectangle1
anchor.left: grid.rect1.left
The Following 2 Users Say Thank You to coderus For This Useful Post: | ||
|
2018-09-28
, 18:33
|
|
Posts: 6,447 |
Thanked: 20,981 times |
Joined on Sep 2012
@ UK
|
#4
|
The Following 2 Users Say Thank You to pichlo For This Useful Post: | ||
|
2018-09-28
, 20:59
|
|
Posts: 6,447 |
Thanked: 20,981 times |
Joined on Sep 2012
@ UK
|
#5
|
@coderus,
Thanks. I had tried something similar but that did not work either. Apparently you can only anchor to a parent or a sibling. myGrid is a siblibg, myGrid.rect1 is not.
QML Notification: Cannot anchor to an item that isn't a parent or sibling.
The Following 2 Users Say Thank You to pichlo For This Useful Post: | ||
|
2018-10-01
, 09:10
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, España
|
#6
|
.... I am sure there is a simple solution that I am missing. I tried RTFM but if anything, it did my head in even more.....
The Following 4 Users Say Thank You to Markkyboy For This Useful Post: | ||
Tags |
programming, qml components |
|
To start it off...
I have a layout that changes depending on some external parameter, for example a screen orientation.
For example:
How do I do it?
A simple and naive solution below does not work:
Русский военный корабль, иди нахуй!