qtableview hide/disable icon (Qt::DecorationRole)
Hello,
I have a model (QStandardItemModel) that is used by 2 views. One of them is QTableView.
In my model I have data with Qt::DecorationRole for icon's that are displayed in other view.
The question: how to disable icons on QTableView (without delegates/subclass - I want to go simplistic here).
Currently I did resolve this using setIconSize( QSize(0,0) ) but I don't know if view (QTableView) still query model for Qt::DecorationRole.
My question also could be: is view, when is set setIconSize( QSize(0,0) ) to 0, query model for that item data roles?
Best regards.
In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
The advance of computerization however, has not yet wiped out nations and ethnic groups.
Bookmarks