Hi,
New to qcad, I'm wondering if I can add a dock widget and keep it contextuel to document (as Property editor).
In this way if I switch between 2 documents oppened, content dock widget will be related to actif document.
Many thanks
Dalida
contextuel dock widget
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Re: contextuel dock widget
You can use a focus listener to get notified when the current document changes. In ECMAScript:
Code: Select all
var fl = new RFocusListenerAdapter();
appWin.addFocusListener(fl);
fl.focusUpdated.connect(MyClass, "doSomething");
...
MyClass.doSomething = function(document) {
// called when current document has changed
};
Re: contextuel dock widget
Thanks !
Re: contextuel dock widget
Thanks !