<div class="gmail_quote"><div>Thanks Martin for your answer. I&#39;ll try to explain better.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I don&#39;t understand what&#39;s the problem. What do you mean by &quot;an abort<br>
from the compiler&quot; - does it mean that your code doesn&#39;t compile? Or<br>
is your application aborted at that point?<br></blockquote><div><br>I tried to mean that my application aborted at that point.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

In what context do you call the selectedFeatures() method, what is the<br>
expected result and what do you get instead?<br></blockquote><div><br>I get the correct values. <br><br>I call it in a slot that is called when the user clicks the map with an EmitPoint tool. But when the method ends and then the QList is destroyed, the application aborts. I think that it has to do with the ownership of the features, but it is strange because I&#39;m getting a copy of the list... I can&#39;t still figure out what is the problem. If I use a newly allocated pointer for the List, everything works fine until I delete that object.<br>
 <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Please describe your problem in more detail, otherwise we won&#39;t be<br>
able to help you.<br></blockquote><div><br>Sorry, please fell free to ask further questions if it is still not clear.<br><br>Thanks again.<br><br>--<br>federico<br></div></div>