[Interest] QtLabsControls Button - Invalid property name "label".
Viktória Nemkin
viktoria.nemkin at gmail.com
Mon Apr 25 10:01:46 CEST 2016
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160425/63aef0b1/attachment.html>
More information about the Interest
mailing list