PDA

View Full Version : QTableWidget align background image in cell



gtan
16th September 2012, 16:44
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:



QBrush qbImg;
QPixmap pixmap("theImage.bmp");
qbImg.setTexture(pixmap);
qbImg.setStyle();
ui->theTableWidget->item(0,0)->setBackground(qbImg);


Any help?