0

The application on which I'm working on has QStandardItems laid in QListView. I want to set a transparent image on the QStandardItem which is bound in a listview. How can a set an Overlay image on the QListView item ?

Gojira
  • 171
  • 4
  • 14

1 Answers1

0

Create a custom delegate. Ovverride paint() method in next way:

1) QItemDelegate::paint( default args... );

2) p->drawPixmap( your overlay image )

Dmitry Sazonov
  • 8,801
  • 1
  • 35
  • 61