Qt5Script is deprecated since 5.5, was only ever meant as a porting aid from Qt4, and should be ported away to QJSEngine. It is also a stepping stone to eventually port to Qt6, whenever that is possible. Issue has briefly come up here, but it is unclear if upstream is aware of the need to port away from it: https://github.com/opentoonz/opentoonz/issues/731