Open JaWeilBaum opened 2 years ago
Creating new js objects
If you add a new marker to the map. pyqtlet2 will create a new javascript object. Due to constraints of QWebChannel(), all objects which a registered after the application start, will be not able to send notifications to the main application!
I have a idea, we regiseter a eventDelegateObject before application start, all the later registered objects' notification be sent to this eventDelegateObject, then this delatation dispatch it to right Python object.
Hey @alexhuangdz Did you already experiment with this, or have a version?
I tried on my local version ,it works.
Add a known limitaions list, as well as a list of workaround which can be used.