JaWeilBaum / pyqtlet2

pyqtlet2 extends pyqtlet which initially brought Leaflet maps to PyQt5 and PySide6.
Other
37 stars 19 forks source link

Add: Known limtations documentation #20

Open JaWeilBaum opened 2 years ago

JaWeilBaum commented 2 years ago

Add a known limitaions list, as well as a list of workaround which can be used.

JaWeilBaum commented 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!

alexhuangdz commented 2 years ago

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.

JaWeilBaum commented 2 years ago

Hey @alexhuangdz Did you already experiment with this, or have a version?

alexhuangdz commented 2 years ago

I tried on my local version ,it works.