Closed mechatheo closed 3 years ago
Okay i think the problem was on my side after all, i was removing the ports in batch mode and did send the signals only after everything was done. However in the meantime the internal port structure has been resized already. Now removing one after another and sending the signal right afterwards works.
Dynamic port management requires extra care in managing the timing of signaling, otherwise it can be treaky. Glad you solved your issue. If you have a little example for dynamic output you would add it could be quite useful :)
Hello,
first of all, thank you very much for adding the dynamic port feature to the library. I recently started using
QtNodes
and very soon realized that dynamic ports are crucial to my application. Before starting to fiddle with the library my self, i just thought give it a shot, maybe there is a branch for that and voila!A problem i came across is the following: When i remove my dynamic output ports, which have an active connection, the connector is not removed automatically. Sure users could work around it, but in my opinion that should happen automatically.
Here are some screenshots from my application illustrating the issue. Here is a graph, an embedded widget controls which parameters are queried. The delete button resets the
Parameter Reader
and removes all ports.When i do so the connectors are left hanging as shown in the following screenshot:
Trying to remove the hanging connectors manually results in a crash with the following stack trace:
What are the thoughts on this? Am i misusing the feature? Should i manually remove the connections when ports are removed?