IMO your index() should look like so:

Qt Code:
  1. QModelIndex serverListModel::index( int row, int column, const QModelIndex &parent ) const {
  2. return createIndex(row, column);
  3. }
To copy to clipboard, switch view to plain text mode 

For parent and a "flat" (tabular) model you can always return QModelIndex() as all items have an invalid parent.