首页 > 编程知识 正文

listview自定义适配器,pyqt5的qlistview

时间:2023-05-05 12:41:51 阅读:18531 作者:4012

ihaveimplementedalistofusersinmyqtprogram,using the model/viewprincipleofqt.myqlistviewdisplaysasubclasssofqabstractlisttmoded

nowiwouldliketocustomizethedisplayofmyuserlist (displaythenameonseveralline,add IP信息,and so on : not reallly revevanation )

icouldn ' tfindanythingintheqtdocumentationregardingthis 3360 whataremyoptions?

note 3360 theitemsinthelistdonotneedto (can ' t ) be modified,if this can help。

手握寿司

解决方案

youneedtocreateanewitemdelegateclasstohandlethepainting.hereisagoodanswertoasimilarquestion。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。