QListView/QListWidget with custom items

Posted by Daniel on Stack Overflow See other posts from Stack Overflow or by Daniel
Published on 2009-06-04T03:24:52Z Indexed on 2010/03/19 10:51 UTC
Read the original article Hit count: 935

Filed under:
|
|
|
|

I'm writing my first Qt application with PyQt and am having some trouble creating a custom list view. I'd like the list to contain arbitrary widgets (one custom widget in particular). How would I go about this?

It seems that the alternative would be to create a table or grid view wrapped in a scrollbar. However, I'd like to be able to take advantage of the model/view approach as well as the nesting (tree-view) support the built-ins handle.

EDIT: To clarify, this widget is interactive (contains buttons), so the solution requires more than painting a widget.

© Stack Overflow or respective owner

Related posts about qt

Related posts about pyqt