Because an index can be invalid see QModelIndex::isValid.
So, you should at first check the index validity
Qt Code:
... if (!index.isValid()) return 0; ...To copy to clipboard, switch view to plain text mode
Because an index can be invalid see QModelIndex::isValid.
So, you should at first check the index validity
Qt Code:
... if (!index.isValid()) return 0; ...To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Bookmarks