• 4647阅读
  • 1回复

关于QListWidgt插入自定义的widget条目 [复制链接]

上一主题 下一主题
离线guqun
 
只看楼主 正序阅读 楼主  发表于: 2010-06-08
我自定义了一个widget,现在想把这个widget插入到ListWidget里面去,可是条目之间出现了互相覆盖的情况,哪位大侠知道怎么弄啊,谢谢了啊
离线xtfllbl

只看该作者 1楼 发表于: 2010-06-09
void QListWidget::setItemWidget ( QListWidgetItem * item, QWidget * widget )
Sets the widget to be displayed in the give item.

This function should only be used to display static content in the place of a list widget item. If you want to display custom dynamic content or implement a custom editor widget, use QListView and subclass QItemDelegate instead.
上海欢迎您
快速回复
限100 字节
 
上一个 下一个