title: Get index of the delegate currently displayed - QML ListView
body: <p>I created a ListView, which displays a couple of pages of content defined by the user (plain text). The page displayed is a delegate. Only one page is visible at a time. I decided to use it to get snapping to one item, in the same way the iOS' launcher works. The user simply flicks between the pages. (this is to be used on touch screens)</p>
  
  <p>I need to have the index of the currently displayed page for some operation. currentIndex of the ListView always stays == 0. How can I get it?</p>
  
  <p>For those who prefer code:</p>
  
  <pre><code> ListView
   {
        onCurrentIndexChanged: console.log(currentIndex) // this gets called only once - at startup
        delegate: Column
        {
             // The page displayed, only one page at a time
        }
   }
  </code></pre>
  
  <p>Thanks</p>