import QtQml Component { QtObject { // having a type inside Component is required objectName: "enclosed" } }