<div class="gmail_quote"><div>Thanks Martin for your answer. I'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't understand what's the problem. What do you mean by "an abort<br>
from the compiler" - does it mean that your code doesn'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'm getting a copy of the list... I can'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'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>