16,215
社区成员
发帖
与我相关
我的任务
分享
createEditor(QWidget *parent,const QStyleOptionViewItem &option,const QModelIndex &index)const
{
if(inde.column() == 0)
{
.............
}
else if(index.column() == 1)
{
//在这里我如何得到同一行的前一列的数据
QString data = 同一行前一列数据;
...
创建editor
....
}
else if(index.column() == 2)
{
//同理 ,,在这里我如何得到同一行的前一列的数据
QString data = 同一行前一列数据;
...
创建editor
....
}
}