Hi!
I would like to have the ability to control whether you can pan the map from the map view based on certain signals. How would I be able to toggle whether the user can pan the map using the same settings that ArcGIS provides?
Thanks!
Nick
Solved! Go to Solution.
You will need to "accept" the mouse signals so they don't go through, and that should stop the default behavior from happening
connect(m_mapView, &MapGraphicsView::mousePressed, this, [this](QMouseEvent& event)
{
event.accept();
});
You will need to "accept" the mouse signals so they don't go through, and that should stop the default behavior from happening
connect(m_mapView, &MapGraphicsView::mousePressed, this, [this](QMouseEvent& event)
{
event.accept();
});
This worked! Thank you