Results 1 to 2 of 2

Thread: Multiple Lines per item in a QListWidget/QListView

  1. #1
    Join Date
    Apr 2008
    Posts
    39
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Multiple Lines per item in a QListWidget/QListView

    Is it possible to "disable" the horizontal scrollbar and show the whole content of an item by wrapping the text and make each item have an own height?

    Greetings

  2. #2
    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: Multiple Lines per item in a QListWidget/QListView

    Yes, but you have to provide a custom delegate that would wrap lines. The issue was brought up some time ago on the forum, try searching for it.

Similar Threads

  1. View, Scene, Item and thread??
    By dungsivn in forum Qt Programming
    Replies: 5
    Last Post: 20th August 2008, 19:21
  2. How to get multiple lines values in XML file..
    By dark1988 in forum Qt Programming
    Replies: 3
    Last Post: 22nd July 2008, 08:24
  3. Item Delegate Painting
    By stevey in forum Qt Programming
    Replies: 3
    Last Post: 9th May 2008, 07:37
  4. Replies: 1
    Last Post: 19th April 2007, 22:23
  5. [QT4] QTreeView and rows with multiple lines
    By KShots in forum Qt Programming
    Replies: 8
    Last Post: 30th March 2006, 18:47

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.