paceholder / nodeeditor

Qt Node Editor. Dataflow programming framework
BSD 3-Clause "New" or "Revised" License
2.92k stars 795 forks source link

How to convert types in the v3 #341

Open zmoth opened 1 year ago

zmoth commented 1 year ago

The registerTypeConverter is used in v2.

Can you also add an example in the third version?

paceholder commented 1 year ago

It looks like I need to re-enable this code for the "Data Flow" classes. And leave it up to users for general graph-visualization codes (via inheriting AbstractGraphModel::connectionPossible(ConnectionId)).

I'll restore the missing code soon and will improve the visuals of the "converting" connection.

LiuPeiqiCN commented 6 months ago

How to use AbstractGraphModel::connectionPossible(ConnectionId) and type converter? Does anyone have an example about it?