All the Model-View Interface Implmentations should check for QModelIndex ::isValid() condition and handle it accordingly (safely)
Example:
Qt Code:
{ if(parent.isValid()) return _data->count(); //root node else return 0; }To copy to clipboard, switch view to plain text mode
Bookmarks