Skip to content
  • 0 Votes
    5 Posts

    Make a role for Qt::DisplayRole and call it "display". Then return data by column like you are doing to support tables. If I remember correctly TableViews are stuck on using the display role. ListViews seem to be more flexible. I don't know why though. I had to use 2 methods to support both listviews and tableviews if I remember corrrectly.

    You should only have to use the word "display" to support this role in your delegates. You can add it as another case to your role case so you can support both types of views.