title: Connection of signals and slots (regarding qlistview) - Qt
body: <p>I need to connect a singal and a slot but I can't seem to figure out it's structure, I need to connect a qlistview double click and I need the number starting from the top that the element was in, for example, if I had a qlistview with 5 elements, and you clicked the 2nd one I need to know that the second element was clicked. In use I'm doing a network connection and the qlistview shows the aviable networks. </p>
  
  <p>Summing up I would like to know the snippet of code I have to use to achieve this because I can't figure it out. </p>