Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Final “STEPS Toward the Reinvention of Programming” Paper [pdf]. Parent comment
I find writing the anchors in QML (Qt Quick's layout language) to be quite pleasant and easy.
Eg:
Rectangle { Rectangle { id: a anchors.top: parent.top anchors.bottom: parent.bottom anchors.left: parent.left width: parent.width / 2 } Rectangle { anchors.top: parent.top anchors.bottom: parent.bottom anchors.left: a.right anchors.right: parent.right }
There is much much more, much of which makes it more concise, but that's the basics.
I find writing the anchors in QML (Qt Quick's layout language) to be quite pleasant and easy.
Eg:
The two most "interesting" parts of this are the width: parent.width / 2 and anchors.left: a.rightThere is much much more, much of which makes it more concise, but that's the basics.