component Button was not found
tubbadu opened this issue · 1 comments
tubbadu commented
I'm trying to build a simple
import QtQuick.Controls;
Item{
Text {
id: text;
anchors.fill: context;
text: 'Hello, world!';
font.pixelSize: 32;
verticalAlignment: Text.AlignVCenter;
horizontalAlignment: Text.AlignHCenter;
}
Button {
anchors.top: text.bottom;
}
}
but I get the following error:
$ ./qmlcore/build
building app for web...
parsing src/app.qml ... src.app
error: src/app.qml: on line 14-16 column 2-3: component Button was not found
whoozle commented
Button is in controls repo, https://github.com/pureqml/controls
just clone it next to your src
directory and it should work after that.