Fix QObject: Cannot create children.