If you have an index you can simply call index.data() to retrieve a QVariant with the data, but the snippet you have written will also work.
By the way - you could have connected to the itemDoubleClicked() signal to get the actual item right away.
If you have an index you can simply call index.data() to retrieve a QVariant with the data, but the snippet you have written will also work.
By the way - you could have connected to the itemDoubleClicked() signal to get the actual item right away.
impeteperry (27th January 2007)
Bookmarks