I have programming experince but I am new with Qt, JavaScript and QCAD.
So far I was able to replicate all the examples described in the web site.
I am trying to replicate the example PersistentWidgets as described at following link
http://www.qcad.org/doc/qcad/3.0/develo ... dgets.html
but I cannot get the widget displayed.
I have created the folder structure the Action and the UI file.
In PersistentWidgets.js I have copied and pasted the code from
http://www.qcad.org/doc/qcad/3.0/develo ... ete_script
I start QCAD with debugger enabled and I get an error I have removed the if statement
/* if (!dialog.exec()) { // User hit cancel: this.terminate(); return; } */and now I can see the following instructions are executed,
// Print the user input to the QCAD console: var appWin = EAction.getMainWindow(); appWin.handleUserMessage("Position X: " + positionX); appWin.handleUserMessage("Position Y: " + positionY); this.terminate();but the widget is not displayed.
Did I miss any instruction or anything else, please?
I would be glad if you could give me any suggestion.
Kind regards,
Plane