Jacek,
Well I wanted to be able to populate a listview with information that is rendered as rich-text.
I guess I just don't understand how all these different parts intersect.
Like I said above, if I don't use labels, I can simply populate each item in the view with text using painter->setText(*params*) and, in that case, selecting works just fine. I just don't understand why the label event handler shows that an item is selected (it's in the event handler that I use the selection model to select items in the view), but in the
void MyDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
To copy to clipboard, switch view to plain text mode
call none of the items show up as being selected. In both instances I'm using what I would assume is the same pointer to the same selectionModel. I guess that somewhere along the line the selectionModel's values are being changed. Oh well, I just don't get it.
If I can get the text to wrap in the paint call, then I guess I don't need to use a label.
Bookmarks