It's probably easier to post this kind of questions in the forum: https://forum.qt.io The answer is that you have to reimplement QStyledItemDelegate::paint but it's unclear from your question how you store the image in the model
Luca Beldi -----Original Message----- From: hizoka [mailto:h...@free.fr] Sent: 16 March 2018 17:30 To: interest@qt-project.org Subject: [Interest] Auto stretch/resize background image of QTableWidgetItem Hi, Is it exist a simple solusion for auto resize the background image of a QtableWidgetItem ? For now, I use the resizeEvent who calculate the cell size and resend a Qpixmap with the good size. It's not really userfriendly :p Any simple idea ? Best regards. Hizo _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest