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。