Qt Table - is it possible to contain graphic objects/widgets in it?
-
Hello, I'm going to create an interactive table which will contain graphic objects/widgets - simple circles, that represents values from 2d array, by colour of circles. Most of the cells from table will have single circle - but my question is, is it possible to keep graphic objects in tables from qt like table view or table widget? Beacause in every tutorial bout tables there are only simple data like names/age/salary etc.
If it is possible, tell me please which is more proper to this project: tablewidget or tableview , or please give me an advice how to represent my ideas not in table but in other stuff.
Thanks in advance :) -
Hi and welcome to devnet,
You should take a look at the QStyledItemDelegate. It will allow you to present your data the way you want.
Hope it helps