QML import crashes MuseScore

• Jun 13, 2021 - 22:47
Reported version
3.6
Type
Plugins
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project

Create the following basic plugin:

import QtQuick 2.0
import MuseScore 3.0
import "x" // load the qml related files, such as "props.qml"
 
MuseScore {
      menuPath: "Plugins.pluginName"
      description: "Description goes here"
      version: "1.0"
      onRun: {
            console.log(Props.hello)
            Qt.quit()
            }
      }

In the plugin folder, create a folder called "x" with the following 2 files:

props.qml

pragma Singleton
import QtQuick 2.0
 
QtObject {
      property var hello:"world"
}

qmldir

singleton props props.qml

Executing that plugin from the plugin-editor or even going to MuseScore plugins menu results in MuseScore crashing


Comments