[Interest] Auto stretch/resize background image of QTableWidgetItem
Luca Beldi
Luca.Beldi at twentyfouram.com
Mon Mar 19 15:02:04 CET 2018
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:hizo at free.fr]
Sent: 16 March 2018 17:30
To: interest at 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
More information about the Interest
mailing list