PDA

View Full Version : Query regarding QICon and QPushButton



chinmayapadhi
16th August 2010, 12:41
hi ,

I am creating a TreeWidget. I want 4 columns in that , where one column has the icon which is a QIcon datatype and the 4th column is a pushbutton . Just wanted to know if i can add them in the tree widget .

If yes then a sample pusedo code will surely help .

Thanks in advance!!

Lykurg
16th August 2010, 12:54
You can. See QTreeWidget::setItemWidget(). Or write you own delegate for the two columns.