当前位置: 代码迷 >> QT开发 >> qtableview添加qpushbutton有关问题
  详细解决方案

qtableview添加qpushbutton有关问题

热度:164   发布时间:2016-04-25 05:06:50.0
qtableview添加qpushbutton问题
qtableview 使用代理类QitemDelegate添加qpushbutton时,只有在编辑网格的时候button控件才显示出来,不然不显示。。如何实现才能够显示一列的qpushbutton控件..谢谢大家帮忙了...不使用qtablewidget控件,只要求qtableview

------解决方案--------------------
tableView->setItemDelegateForColumn(int columnIndex )