PDA

View Full Version : iTunes Artist View-like QTreeViews



idadesub
20th March 2008, 05:09
I'm trying to group items from a database similar to how iTunes does it (see the attached picture). Conceptually, it looks like they're using a QTreeView with an image and text floated to the left of the branch rows. Is there an easy way to do this?

My project doesn't have to be done for a while, so I might be able to use qt 4.4. Does the added item view style add support for this?

Lykurg
20th March 2008, 09:25
Hi,

I would create my own widget for each album with a QLabel on the left for the image and the label. On the right use a QTableWidget and subclass QTableItem for different behavior.


Lykurg

idadesub
21st March 2008, 06:26
Thanks Lykurg. What would you do then to display multiple albums? Just append them to a widget? Wouldn't there be performance issues with doing that?

codeslicer
21st March 2008, 13:28
Maybe make your own class which will contain these objects, and later just add as many of these Widgets as you need?