title: How to send the selected item in the listWidget to another function as a parameter
body: <p>Whenever I click any function in the list widget, it ran a specific function. Now I want to send the item itself, as a parameter to that function. Here is the code:</p>
  
  <pre><code>QtCore.QObject.connect(self.listWidget, QtCore.SIGNAL("itemClicked(QListWidgetItem *)"), self.test)
  
  def test(self):
      print 'hello'
  </code></pre>
  
  <p>Instead I want:</p>
  
  <pre><code>def test(self,item):
          print item
  </code></pre>