Now that I read the error, it’s because your object “New” is actually empty, you never set it to be anything anywhere. Before using it you need to actually set it as something. That’s a widget right? You need to get a reference to the actual widget on the screen and set that as the variable or the engine won’t know which widget of that type you want to set.
This is how I do it, when I’m creating the widget to be drawn on the screen I set it to the reference so I can call functions or change variables inside it later on.
