python - how to set QTableWidgetItem checkbox at the top of the cell in qtablewidget -


i have added checkbox randomly every row of qtablewidget using following code

 self.table = qtgui.qtablewidget()   chkboxitem = qtgui.qtablewidgetitem()   chkboxitem.setflags(qtcore.qt.itemisusercheckable |   qtcore.qt.itemisenabled)   chkboxitem.setcheckstate(qtcore.qt.unchecked)  self.table.setitem(self.table.rowcount()-1,0,chkboxitem) 

but checkbox @ center of cell please let me know how align checkbox @ top of cell.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -