Results 1 to 3 of 3

Thread: What do I need to create this scrollbar?

  1. #1
    Join Date
    Oct 2009
    Posts
    47
    Thanks
    10

    Talking What do I need to create this scrollbar?

    Hi guys I'm new to QT.

    What I'm wanting is basically a vertical scroll bar and have the scroll bar scroll through avatars with text besides the avatar. Just like a contact list.

    What type of widgets would I need to create to accomplish such a thing?

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: What do I need to create this scrollbar?

    QListWidget sounds like a good start.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: What do I need to create this scrollbar?

    QListView with an appropriate model that you have to implement. QListWidget might look nice to implement something but in the end it is not so nice that you duplicate all your data unless you want the QListWidget to be part of your application logic.
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. Eclipse debugging: Unable to create variable object
    By PUK_999 in forum Installation and Deployment
    Replies: 0
    Last Post: 20th August 2009, 21:42
  2. Replies: 4
    Last Post: 1st May 2009, 11:00
  3. Treeview scrollbar not updating when inserting rows
    By Khal Drogo in forum Qt Programming
    Replies: 11
    Last Post: 29th November 2007, 13:13
  4. GraphicsView/GraphicsScene: scrollbar policy Qt::ScrollBarAsNeeded
    By Pieter from Belgium in forum Qt Programming
    Replies: 4
    Last Post: 21st March 2007, 13:15
  5. about scrollbar style
    By qtopiahooo in forum Qt Programming
    Replies: 1
    Last Post: 25th January 2007, 13:34

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.