PDA

View Full Version : QPushButton and QItemDelegate



sawerset
21st May 2009, 22:28
I want to create a QItemDelegate for a QTableWidget that draws some text and a QPushButton. How it can be done?

wysota
21st May 2009, 23:13
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.