I'd say that you want to implement a delegate for drawing list items in a list view. This means that you want to look at QAbstractItemDelegate.
I'd say that you want to implement a delegate for drawing list items in a list view. This means that you want to look at QAbstractItemDelegate.
If it expands upon click you might also do it with a tree view.
The way that I see it, it's some kind of "special" QListView.
Except that when you click on one item it expands in one "widget" with several buttons and infos.
So I guess my question is :
how to make fit a fully featured widget in a QListView ?
You can use setIndexWidget to do that. But remember that Skype uses Qt3 and we're talking about Qt4, so there are differences. I wouldn't stick a widget there, but go for the delegate approach as already suggested. You can do it with both QListView or QTreeView, the choice is yours.
bunjee (29th January 2007)
Bookmarks