Add image to Qtable
-
How to add image in the qtable. i developing one application, sqlite database having image path. but i need to display the image in qtable. i faced one issue at the run time image is doesn't appeared in the qtable. Its appeared only image path. How can I retrieve image in qtable. please any one help me.
-
Hi,
You need to implement your own QSyltedItemDelegate which will load the image from the file.
Hope it helps
-
can u send some sample code????
-
Just thought of something, before creating a QStyledItemDelegate, did you implement the Qt::DecorationRole for your model ? You could there return a QImage