<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>'nuther woooohoooo!...I got a button!, lol...<br>A button in the first column of a TreeView on startup..<br><br>Unfortunately, it's not a PushButton, so it's not "pushing", lol...<br>but surely that's something I'm overlooking....but apparently<br>QStyleOption has no "PushButton",....but maybe I need to<br>pass an argument type when declaring,...<br><br>class DabDelegate(QStyledItemDelegate):<br><br> def __init__(self, parent=None):<br> super(DabDelegate, self).__init__(parent)<br><br> def paint(self, painter, option, index):<br> if index.column() == 0: # Thumbnail<br> parent =
self.parent()<br> button = QStyleOptionButton()<br> button.rect = option.rect<br> QApplication.style().drawControl(QStyle.CE_PushButton, button, painter)<br><br> else:<br> QStyledItemDelegate.paint(self, painter, option, index)<br><br><br><br></td></tr></table><br>