I've searched for some info about the usage of the QPersistentModelIndex, sadly I found nothing about this. Could anyone enlighten me on the topic of using persistent model indices as I don't know what to do to get them to work with my own database model (seriously one can't expect the QPersistentModelIndex to magically know that by storing the unique index of the database table it will be as persistent as it can be).

First I searched the qt reference pages and all I could find was the page stating what the persistent index can do but not how it could be implemented with a different model or so. I checked this forum and googled quite a bit but with no results. Either there's nothing to be found or my searching skills aren't many.

Thanks in advance.