Too few arguments in new function

In reply to zz8318:

You cannot register a class with the factory AND change the class construtor’s arguments. The factory adds code that calls the constructor, and it only knows about the two arguments name and parent.