Hi,
if your entities are having colliders, the easiest way would be:
var selectedBody = physicsWorld.bodyAt(Qt.point(x, y));
if(selectedBody) {
// found something!
var entity = selectedBody.parent.parent;
console.debug(entity.entityType);
}
The parent of the Box2D body that you select is the Collider, the parent of the Collider will be the entity whose properties and function are then accessible for you.
Cheers,
Alex