MuseScore/share/plugins/panel.qml

34 lines
630 B
QML
Raw Normal View History

2013-07-10 11:05:54 +02:00
import QtQuick 2.0
2012-06-05 17:34:19 +02:00
import MuseScore 1.0
MuseScore {
menuPath: "Plugins.panel"
version: "2.0"
description: "This demo plugin creates a GUI panel."
pluginType: "dock"
dockArea: "left"
2012-06-08 19:06:52 +02:00
width: 150
height: 75
onRun: console.log("hello panel");
2012-06-05 17:34:19 +02:00
Rectangle {
color: "grey"
anchors.fill: parent
2012-06-05 17:34:19 +02:00
Text {
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
text: "Hello Panel"
}
2012-06-05 17:34:19 +02:00
MouseArea {
anchors.fill: parent
onClicked: Qt.quit()
2012-06-05 17:34:19 +02:00
}
}
}
2012-06-05 17:34:19 +02:00