Upgrading plugins to MS4
What changes are required to update my MS3 plugins to MS4?
My plugins don't appear in the plugin menu.
Will there still be a plugin creator option?
What changes are required to update my MS3 plugins to MS4?
My plugins don't appear in the plugin menu.
Will there still be a plugin creator option?
Do you still have an unanswered question? Please log in first to post your question.
Comments
Plugin Creator is said to reappear in a later 4.x release.
There is no migration documentation yet.
You can see the error messages in the console window if you start MS4 via terminal. It basically shows the same as the console in the Plugin Creator.
Also note this bug that requires you to restart MS4 in order to reload your plugin after you changed the code.
MS4 seems to use a different QML engine although both 3.6 and 4 use Qt 5.15.2 on my system.
I get QML errors for
ToolTip.visible: hovered
. AddinghoverEnabled: true
seem to work. But it does not work anymore for text labels (Text
orMouseArea
).Plugins needs to be "Enabled" in Home -> Plugins to be visible in Plugins menu.
Another necessary changes are:
- add
title: "plugin title"
belowversion: "1.0"
- replace
Qt.quit()
withquit()
In reply to Plugins needs to be "Enabled… by sammik
Right,
title
seems to replacemenuPath
. For backwards compatibility,menuPath
should still be defined, I guess.pluginType: "dock"
doesn't work in MS4."dialog"
still works.