You anchor to a parent like this:
anchors.top: parent.top
Check out the documentation here:
http://doc.qt.nokia.com/4.7-snapshot/anchor-layout.html
On Tue, Jul 13, 2010 at 2:46 AM, Jason H wrote:
> Hi again. I am trying to anchor to parent
> |A|
> |B|
> |C|
>
> With the rect being
Hi again. I am trying to anchor to parent
|A|
|B|
|C|
With the rect being the parent. But I get the message: "QML Text: Cannot anchor
to a null item."
importQt4.7
Rectangle {
width: 1024
height:768
gradient: Gradient {
GradientStop { position