title: How to display in Qtablewidget the data from sqlite.
body: <p>Hi, I am new to python. I am trying to display data from sqlite database in Qtablewidget but getting only row count displayed in qtablewidget. Please can anyone help me to solve this issue. Below is my code...</p>
  
  <pre><code>patientTable = QtGui.QTableWidget()
  rowcount = queryCurs.execute('''SELECT COUNT(*) FROM PATIENT''').fetchone()[0]
  patientTable.setRowCount(rowcount)
  queryCurs.execute('''SELECT * FROM PATIENT''')
  for row, form in enumerate(queryCurs):
       for column, item in enumerate(form):
              patientTable.setItem(row, column, QtGui.QTableWidgetItem(str(item)))
  </code></pre>
  
  <p>I need both rowcount and data from database to display. How do I do that?  </p>