I want to create a QItemDelegate for a QTableWidget that draws some text and a QPushButton. How it can be done?
I want to create a QItemDelegate for a QTableWidget that draws some text and a QPushButton. How it can be done?
Drawing text is easy so you probably know how to do it. Drawing a button is not much harder. Use QStyle API for that, for example QStyle::drawControl with CE_PushButton.
Bookmarks