int row=listview->currentIndex().row();
if(row!=-1)
{
QModelIndex index=listmodel->index(row);
QString str=listmodel->data(index,Qt::DisplayRole).toString();
QMessageBox::information(NULL,tr("information"),str);
}
else
{
QMessageBox::information(NULL,tr("information"),tr("please select a item"));
}