[SOLVED] Can you not use other roles in a QStringListModel??



  • I tried setting the ToolTipRole and the DecorationRole on items in my QStringListModel, but it's not working. I'm guessing that these don't work on this type of a model, correct?



  • [SOLVED]: Sorry all, my bad. I was using a QAbstractListModel with my own ::data method and was not dealing with the other roles properly.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.