The signal emitted by the QListView
has a QModelIndex
object as a parameter.
Edit your slot that it matches the signature of the signal: void MainWindow::hItem(QModelIndex idx)
.
With your QModelIndex
object you can retrieve the clicked row by using column()
or row()
. See here: http://harmattan-dev.nokia.com/docs/library/html/qt4/qmodelindex.html