Quote Originally Posted by volcano View Post
TMy qvariantmap has different keys for each item.
Since you retrieve this from C++ it would be easier if you returned a list.

A map is only useful if you have more than one data aspect per item.

If you insist on using a less ideal data type, then you need to get the keys as a list to feed to the view's model property.
Inside the delegate you then use the current key as proivded by that list to do the data lookup.

Quote Originally Posted by sylas View Post
Regarding the variable height for each row, let's consider a table view.
Originally you wrote TreeView, so you are using a TableView now?

Quote Originally Posted by sylas View Post
I am displaying 3 columns(one label, second a list view and third a list view) using tableviewcolumn. And each has its own delegate. So do i set the height in the itemdelegate ? Or is there a better way?
Well, my first try would be to make the delegate as large as you want it to be.

Cheers,
_