QML coding: can't initialize dialog of dialog-type plugin
I have written a dialog-type plugin which works perfectly in the plugin creator, but not when run from the plugin menu. What seems to be happening in the latter case is that it ignores the data that my onRun() has placed in the mainLayout dialog, and displays it with default values. I can prove that the onRun is running, but there seems to be no way it can convey data to the dialog or the button handlers, although it does so perfectly when running in the Plugin creator. I have written a plugin which putatively looks at stuff and offers to you to change it, but seemingly can't. What am I missing?
The enclosed minimal test case shows "RIGHT" when run under the Creator, and "WRONG" when run from the menu. (In Qt 5.9.4).