title: How to create filters for QTableView in PyQt
body: <p>I am using QTableView to display data retrieved from <code>QtSql.QSqlQuery</code></p>
  
  <p>I want to know how can i create filters for it like in excel.</p>
  
  <p><img src="https://i.stack.imgur.com/snoKH.jpg" alt="enter image description here"></p>
  
  <p>In the above image i need to get the filters for All heders (Sh_Code,SH_Seq,Stage)
  The filters will have unique values in of that column on which we can filter.</p>
  
  <p><strong>Required result</strong></p>
  
  <p>I need the Table view header with a dropbox listing all unique values in that column just like in excel below. No need of Top,Standard filter... as shown in image. Need only "All" and the unique "column items"</p>
  
  <p><img src="https://i.stack.imgur.com/SNQFG.jpg" alt="enter image description here"></p>
  
  <p>This is from my .NET application, uploaded for more clarity</p>
  
  <p><img src="https://i.stack.imgur.com/WYl9C.jpg" alt="enter image description here"></p>