Render QWidget in paint() method of QWidgetDelegate for a QListView

后端 未结 3 2012
南方客
南方客 2020-12-24 15:37

i\'m having difficulties implementing custom widget rendering in a QListView. I currently have a QListView displaying my custom model called

3条回答
  •  再見小時候
    2020-12-24 16:07

    Here is an example for you. It seems that you need to use QStylePainter but this is just for drawing as far as I understand it does not act like a real button.

提交回复
热议问题