I want to align an image to the bottom right corner of a QTableWidget cell. I also do not want the image to be repeated. So far, I have done the following:

Qt Code:
  1. QBrush qbImg;
  2. QPixmap pixmap("theImage.bmp");
  3. qbImg.setTexture(pixmap);
  4. qbImg.setStyle();
  5. ui->theTableWidget->item(0,0)->setBackground(qbImg);
To copy to clipboard, switch view to plain text mode 

Any help?