List items with custom content and layout
I've been banging my head against the wall for several days now with a question that probably has only one correct answer. What is the 'industry' way of making custom lists in Qt 4.6 (and up) for Maemo5?
I've done some experimentations with QListWidget using setItemWidget(item,widget) for linking a very customized widget (extending QWidget) to the QListWidgetItem. But there are several problems with this solution. For example, I haven't been able to configure the list so that the item would increase height dynamically according to the content size. Instead, all the list items are forced to the same height without proper word wrapping or anything. So the results have been quite ugly.
What I need is something very similar to the discussion thread of Maemo's pre-installed 'Conversations' tool. How would one implement that with Qt?
Re: List items with custom content and layout
Conversations is using GtkTreeView. It basically has 3 columns image, message and timestamp. I believe you can achieve the same using QListWidget.