I hav e a QListView object that's loaded with a QStringListModel and what I want, is to load particular tooltip information for each element and display when the mouse hovers over the row.
I've tried this but it doesn't seem to work:
Qt Code:
  1. QAbstractItemModel *model = ui->HostList->model();
  2. QModelIndex idx = model->index(0,0);
  3. qDebug() << model->setData(idx, "Some tooltip",Qt::ToolTipRole);
To copy to clipboard, switch view to plain text mode 
Anybody here that can help me with this?