lResultList.append(mpIdentifyTool->identify(lCoord.x(),lCoord.y(),QgsMapToolIdentify::TopDownStopAtFirst, QgsMapToolIdentify::VectorLayer));

leads to crash of app. It happens when layers provided by "memory" provider exist on canvas. With layers provided with "ogr" code works normally. Is there way to fix this? Or is there another way to select feature by clicking on it with mouse?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.