Results 1 to 4 of 4

Thread: iTunes Artist View-like QTreeViews

  1. #1

    Default iTunes Artist View-like QTreeViews

    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?
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: iTunes Artist View-like QTreeViews

    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

  3. #3

    Default Re: iTunes Artist View-like QTreeViews

    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?

  4. #4
    Join Date
    Feb 2008
    Posts
    153
    Thanks
    40
    Thanked 8 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: iTunes Artist View-like QTreeViews

    Maybe make your own class which will contain these objects, and later just add as many of these Widgets as you need?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.