Hello!

I'm just starting out with the newly released QtLabsControls. I have tried
using a Button and ran into a problem:

import QtQuick 2.0

import Qt.labs.controls 1.0


Button {

    label: Item {

        Text {

            text: "Example"

        }

        Image {

            id: icon

            source: "qrc:/x.svg"

        }

    }

}


In this example QtCreator tells me "label" is an invalid property name.

According to the documentation here it is should exist:
http://doc.qt.io/qt-5/qml-qt-labs-controls-abstractbutton.html

What am I missing?

Thank you,
Viki
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to