Results 1 to 5 of 5

Thread: Skype style list.

  1. #1
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Post Skype style list.

    Hey guys,

    I would like to create a QListWidget like the one in Skype :



    Basically it's a standard list,
    when clicking on a cell it expands to show some neat informations about the user.

    Any idea on how should I best proceed ? Class reimplementation ? Where should I start ?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Skype style list.

    I'd say that you want to implement a delegate for drawing list items in a list view. This means that you want to look at QAbstractItemDelegate.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Skype style list.

    If it expands upon click you might also do it with a tree view.

  4. #4
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default Re: Skype style list.

    The way that I see it, it's some kind of "special" QListView.

    Except that when you click on one item it expands in one "widget" with several buttons and infos.

    So I guess my question is :
    how to make fit a fully featured widget in a QListView ?

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Skype style list.

    You can use setIndexWidget to do that. But remember that Skype uses Qt3 and we're talking about Qt4, so there are differences. I wouldn't stick a widget there, but go for the delegate approach as already suggested. You can do it with both QListView or QTreeView, the choice is yours.

  6. The following user says thank you to wysota for this useful post:

    bunjee (29th January 2007)

Similar Threads

  1. about scrollbar style
    By qtopiahooo in forum Qt Programming
    Replies: 1
    Last Post: 25th January 2007, 13:34
  2. Custom Style
    By Dusdan in forum Qt Tools
    Replies: 8
    Last Post: 1st September 2006, 22:50
  3. list of list
    By quickNitin in forum Newbie
    Replies: 1
    Last Post: 3rd July 2006, 08:11
  4. QtCentre vs. Qt-Interest mailing list vs. QtForum?
    By brcain in forum General Discussion
    Replies: 4
    Last Post: 16th February 2006, 01:46
  5. Bugs, style changes in 4.1.0?
    By simk in forum Qt Programming
    Replies: 13
    Last Post: 13th February 2006, 11:05

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.