And this works? Hmm... seems odd, as you're allocating objects on the stack. They should get deleted upon returning from the function, causing those items to be removed from the list.
This should work too:
Qt Code:
To copy to clipboard, switch view to plain text mode
Bookmarks