We're having issues with setting the attribution text to visible / invisible.
We're using ArcGIS_Maps_SDK_Qt_Windows_200_7_0, with Qt 6.8.1
In our map model we have a simple Q_INVOKABLE function
void
DisplayMap::toggleAttribution()
{
m_attribution = !m_attribution;
m_mapView->setAttributionTextVisible(m_attribution);
} Which gets triggered from QML via a Button
Button {
text: "Attribution"
onClicked: model.toggleAttribution()
}For one, this does not hide the Attribution, it seems to not work at all. Then when clicking it multiple times (basically after "hiding" the attribution, showing it again, and then "hiding" it again) it crashes.


Interestingly enough if we hide the attribution "early", i.e. when the model gets a reference to the map view, hiding the attribution works. Still, enabling it later, disabling, enabling again still causes crashes.
void
DisplayMap::setMapView(MapQuickView* mapView)
{
if (!mapView || mapView == m_mapView)
return;
m_mapView = mapView;
m_mapView->setMap(m_map);
m_mapView->setAttributionTextVisible(false); // This works ...
emit mapViewChanged();
}Seems like once the map is fully constructed there is no way to change the attribution, and trying so causes the application to crash.
Please find attached a minimalistic example.