I have made it without using delegate!
the code:

tableWidget1->setItem(3,3,new QTableWidgetItem(tr("")));

QPixmap pix1("image2/vm1.png");
QBrush brush1(pix1);
tableWidget1->item(3,3)->setBackground(brush1);

tableWidget1->resizeColumnToContents(3);
tableWidget1->resizeRowToContents(3);