And when you are not sure that the given index will be always valid then remember to check is with:
Qt Code:
if (!index.isValid()) { // not valid! do sth, e.g. return; }To copy to clipboard, switch view to plain text mode
And when you are not sure that the given index will be always valid then remember to check is with:
Qt Code:
if (!index.isValid()) { // not valid! do sth, e.g. return; }To copy to clipboard, switch view to plain text mode
I would like to be a "Guru"
Useful hints (try them before asking):
- Use Qt Assistant
- Search the forum
If you haven't found solution yet then create new topic with smart question.
janorcutt (17th February 2010)
Bookmarks