@Chris-Kawa Hi, Thank you for the prompt reply. The bug was in my model as you said, but I think I've found the problem.
It turns out I needed the following:
if(!hasIndex(row, column, parent))
return QModelIndex();
In my "QAbstractItemModel::index()" function. I didn't think the view widget would call "index()" with out of bound row/column combinations since it can use "QAbstractItemModel::rowCount()" and QAbstractItemModel::columnCount()" to get the structure of the model.
Thanks again for your help.