qtableview添加qpushbutton有关问题

qtableview添加qpushbutton问题qtableview 使用代理类QitemDelegate添加qpushbutton时,只有在编辑网格的时

qtableview添加qpushbutton问题
qtableview 使用代理类QitemDelegate添加qpushbutton时,只有在编辑网格的时候button控件才显示出来,不然不显示。。如何实现才能够显示一列的qpushbutton控件..谢谢大家帮忙了...不使用qtablewidget控件,只要求qtableview

[解决办法]
tableView->setItemDelegateForColumn(int columnIndex )