两张地图,确认都已可以打开。点击一张地图的图层打开另一张地图,怎么操作。
我在void QMapControl::mouseReleaseEvent(QMouseEvent *event)写判断语句
UGLayer *ugPointLay = m_pMapEditorWnd->m_mapWnd.m_Map.m_Layers.GetLayer(_U("New_Point"));
UGSelection *uPointSelect = ugPointLay->GetSelection();
int iselectpSize = uPointSelect->GetSize();
if(iselectpSize >0) //这里判断点击了,
然后...就在ondraw崩溃了。只是判断语句怎么会崩溃的?那我应该到哪里去写判断语句那?