Hi everyone,
I have rewrite the QDirModel by myslef. I want to add a column to show some images.
In the QDirModel, there is only 'Name', 'Size', 'Type', 'Date Modified'. And all of them are QString type.
Qt Code:
case 0: return d->name(index); case 1: return d->size(index); case 2: return d->type(index); case 3: return d->time(index);To copy to clipboard, switch view to plain text mode
So, I want to know what type can I set that it can show the images in the additional column. I have tried 'QPixmap' and 'QIcon', but they are not work.
What can I do? I need your help. Thanks.
Bookmarks