
| Current Path : /usr/share/mscore3-3.2/plugins/helloqml/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //usr/share/mscore3-3.2/plugins/helloqml/helloqml.qml |
import QtQuick 2.0
import MuseScore 3.0
MuseScore {
menuPath: "Plugins.helloQml"
version: "3.0"
description: qsTr("This demo plugin shows some basic tasks.")
pluginType: "dialog"
width: 150
height: 75
onRun: {
console.log(qsTr("hello world"));
var score = curScore
console.log(curScore)
console.log(score.name)
var m
m = score.firstMeasure()
while (m) {
console.log(qsTr("measure"))
var segment = m.first()
while (segment) {
var element
element = segment.elementAt(0)
if (element && element.type == Element.CHORD) {
console.log(qsTr(" element"))
console.log(element.beamMode)
if (element.beamMode == BeamMode.NO)
console.log(" beam no")
}
segment = segment.next()
}
m = m.nextMeasure()
}
}
Rectangle {
color: "grey"
anchors.fill: parent
Text {
anchors.centerIn: parent
text: qsTr("Hello Qml")
}
MouseArea {
anchors.fill: parent
onClicked: Qt.quit()
}
}
}