Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. "Skype like" contact list control
Qt 6.11 is out! See what's new in the release blog

"Skype like" contact list control

Scheduled Pinned Locked Moved General and Desktop
4 Posts 4 Posters 2.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ronM71
    wrote on last edited by
    #1

    my project calls for a "skype like" contact list control. These are some of my requirements

    1. graphical representation for the type/status of contact (e.g. busy, free, do not disturb)
    2. the name
    3. depending on status, a few clickable images to the right of the contact name
    4. Ability to multi-select
    5. context menu for each contact row.

    Now, If I was in Win32/.NET/MFC, i'd probably use an owner drawn list view. I guess my question is QListWidget what I'd need to use here?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      One possible solution would be to create your own item delegate and reimplement "QAbstractItemDelegate::paint() ":http://doc.qt.nokia.com/latest/qabstractitemdelegate.html#paint and sizeHint().

      The context menu can be handled by the controlling class.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        There are several ways to do what you want. QTableView (or QTableWidget) and doing it in QML (perhaps in combination with some C++) come to mind.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vishwajeet
          wrote on last edited by
          #4

          You can also download skype source code as its open source, and have a look at how they have implemented it and may be you would be able to use the same code provided licencing terms and usability

          Born To Code !!!

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved