[Qt-qml] Trivial issue I'm sure

Adriano Rezende adriano.rezende at openbossa.org
Thu Feb 3 21:56:34 CET 2011


On Thu, Feb 3, 2011 at 5:38 PM,  <mathias.malmqvist at nokia.com> wrote:
>> You need to remove the colon or place the element name after it.
>
> Well spotted. Unfortunately it didn't help with the main issue. Same result. :(

Strange. Try to declare the "Margins" element using pure QML and see
if it works...

// MyMargins.qml

QtObject {
    property real left : 0
    property real top : 0
    property real right : 0
    property real bottom : 0
}

// BorderItem.qml

Item {
    property MyMargins border

    border : MyMargins { }
}

// main.qml

BorderItem {
    border {
        left: 6
        right: 5
    }
}

Br,
Adriano


More information about the Qt-qml mailing list