title: Reimplementing QSqlTableModel.setQuery
body: <p>I have already reimplemented QSqlTableModel.select() to display all the results returned by the model in the view:</p>
  
  <pre><code>def select(self):
  
      self.setTable("videos")
  
      results = QtSql.QSqlTableModel.select(self)
  
      self.setHeaderData(5, QtCore.Qt.Horizontal, "", QtCore.Qt.DisplayRole)
      self.setHeaderData(6, QtCore.Qt.Horizontal, "Modification")
      self.setHeaderData(9, QtCore.Qt.Horizontal, "Ajout")
  
      while self.canFetchMore():
          self.fetchMore()
      return results
  </code></pre>
  
  <p>I would like to do the same thing with the function setQuey, so I tried something like that:</p>
  
  <pre><code>def setQuery(self, query):
  
  
      results = QtSql.QSqlTableModel.setQuery(query)
      self.select(results)
  
      while self.canFetchMore():
          self.fetchMore()
      return results
  </code></pre>
  
  <p>But I got this exception:</p>
  
  <pre><code>File "/home/djipey/informatique/python/bibli/model.py", line 23, in setQuery
      results = QtSql.QSqlTableModel.setQuery(query)
      TypeError: QSqlTableModel.setQuery(QSqlQuery): first argument of unbound method must have type 'QSqlTableModel'
  </code></pre>
  
  <p>Could you explain to me why I have a typeError ? I don't really understand.</p>