Hello,
I want to display images in columns of my QTableWidget instead of text.
How do I do this? Using setIcon() only sets the icon and is not large enough.
Does QTableWidget support images as cell data or should I use another type of widget?
- BRC
Hello,
I want to display images in columns of my QTableWidget instead of text.
How do I do this? Using setIcon() only sets the icon and is not large enough.
Does QTableWidget support images as cell data or should I use another type of widget?
- BRC
Try using setCellWidget, and pass a simple, custom widget, that has the size hint of the pixmap being painted on it.
Regards
You may want to override, the QHeaderView etc. Also AbstractItemView too.
Thanks. I didn't know about that api. I will just set the text on a label and then display that in the table.
- BRC
Bookmarks