Closed oddcitizenape closed 1 year ago
Now after the v3
branch has been merged you can do in your Node Model:
void QuestDBEffectModel::foo()
{
Q_EMIT portsAboutToBeInserted(PortType::Out, // or PortType::In
firstPortIndex,
lastPortIndex);
// ... DO YOUR UNDERLYING DATA CHANGES HERE
Q_EMIT portsInserted();
}
Let me know if something is not clear
Hello guys, thank you for the great project! I've already figured out how to change the port datatype after a node widget is created. Now I would like to make the amount of ports customizeable on a new node widget. But just changing the way a registered model is behaving, doesn't seem to be enough so my widget always stays "portless" since I'm creating it with 0 ports and changing the amount of ports in the restore() method. Do you see any chance how I could accomplish this?
Here's how I'm tyring to handle my model right now: