Custom QListWidget ?
-
Hey everybody,
i am searching for a QListWidget like this: http://postimg.org/image/6c51xovw7/
I think the itemdesign in this list is very nice and now my question is, how can i do
the same, or something like the same ? -
See QListWidget::setItemWidget documentation, it gives possibility to set custom widget for your list items if they have static content. If you want custom editor or/and dynamic content then you need to use QListView and QItemDelegate custom implementation.
-
Hi,
With the topics and the various data layout like that, it makes me think of a QTreeView that's been heavily styled
-
i would also suggest using a QTreeView and use "stylesheets":http://qt-project.org/doc/qt-4.8/stylesheet-examples.html#customizing-qtreeview.
This would be the least amount of work i think.
So your title rows have a col count of 1 and the only indexes with children. This let's you style it easily.