Buffer the input geometry by 50 km using the GeometryEngine::buffer - https://developers.arcgis.com/qt/latest/cpp/api-reference/esri-arcgisruntime-geometryengine.html#buf...
Then call setViewpoint with the returned Geometry
But how to find center of map which added as operational layer.