According to the C++ code in qgsgeorefmainwindow.cpp
I tried to retrieve the Georeferencer target CRS with PyQGIS using QgsSettings().value("/Plugin-GeoReferencer/targetsrs")
but unfortunately this failed (QGIS 3.40.1 Windows).
QgsSettings settings;
// default to last used target CRS
QString targetCRSString = settings.value( QStringLiteral( "/Plugin-GeoReferencer/targetsrs" ) ).toString();
mTargetCrs = QgsCoordinateReferenceSystem( targetCRSString );
How can I obtain the correct value here?