QStyledItemDelegate::paint(painter,option,index);//view if(index.isValid()) { painter->save(); painter->setPen(Qt::SolidLine); painter->setPen(QColor(80,80,80)); painter->drawRect(option.rect); painter->restore(); }