PDA

View Full Version : QListView and custom widgets in each cell



T4ng10r
19th May 2009, 13:25
Welcome

I've got model with data and want to display them in Qistview. Soon I've discovered that text displayed in rows isn't enough. I need a way to display data from model in my own custom widget placed in each cell.
QListWidget won't work - he doesn't wish to work with model, data must be set and modified manually.
I could use QScrollArea, but effect will be like above - no automagically data updating from model changes.

How can I modify or subclass QListView (or similar classes)? Something what wouldn't require manually painting my widgets in each cell.

T4ng10r
28th December 2009, 10:14
Problem was solved with QAbstractItemView::openPersistentEditor.
Now I can activate and open as many editors/delegates as I need. And they won't be hiding when I clicked on other item.