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
Post a Comment