qtqt4symbian

How to Customize ListView in QT


HI..

i am new to QT,i want to know how to customize the listview in QT i.e i want to add multiple icon in single row.. etc.. i tried lot i am not getting how to do that..

i tried with Qlistwidget, in tat i can only insert single row with one image.. i am not able to place multiple icon with desired locations..

please assist me, which control is good listview or listwidget. and how to customize the same according to my view

if you have any sample examples. please provide me the link.

Thanks


Solution

  • You can implement a delegate to customize the rendering of the items in your view.

    From the model/view programming docs: delegates are responsible for rendering individual items in the views.

    See the pixelator sample for example usage.