onClicked doesn't work
I made my first GUI in MuseScore2, but the onClicked event doesn't work.
I attach the plugin. Test.qml
Please look at cancelButton at the end. It doesn't quit.
Tanks for any help.
I made my first GUI in MuseScore2, but the onClicked event doesn't work.
I attach the plugin. Test.qml
Please look at cancelButton at the end. It doesn't quit.
Tanks for any help.
Do you still have an unanswered question? Please log in first to post your question.
Comments
It can't quit something that has already been quit.
Your onRun function calls
Qt.quit()
which means that as soon as your plugin is called and runs, it closes itself. You still see your create window object, but it now lives in an orphaned land of maybes.If you comment out that line from the
onRun
function you will end up in theonClicked
handler of your button.It probably still won't do what you're hoping for though. As calling
Qt.quit
there will leave your window just as open as it is now. You'll also have to explicitly close the window yourself.This should do the trick
In reply to It can't quit something that by jeetee
Thank you, it works exactly as you said, even before commenting out the onRun.