Cura/ControlWindow.qml
2015-04-10 12:01:06 +02:00

42 lines
No EOL
940 B
QML

import QtQuick 2.1
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1
Rectangle
{
width: 300; height: 100
ColumnLayout
{
Text
{
text: "Hello world!"
color: "blue"
}
RowLayout
{
Button
{
text: "Print"
onClicked: { manager.startPrint() }
}
Button
{
text: "Cancel"
onClicked: { manager.cancelPrint() }
}
}
ProgressBar
{
id: prog;
value: manager.progress
minimumValue: 0;
maximumValue: 100;
Layout.maximumWidth:parent.width
Layout.preferredWidth:230
Layout.preferredHeight:25
Layout.minimumWidth:230
Layout.minimumHeight:25
width: 230
height: 25
}
}
}