Results 1 to 2 of 2

Thread: Align icons horizontally in QListWidget in IconMode

  1. #1
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    503
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Question Align icons horizontally in QListWidget in IconMode

    Hi, I have a QListWidget in IconMode, and I would like to align the icons horizontally, including their text. I only managed the attached ugly.png, but I would like to get nice.png.
    I think I tried every option in Designer. Did I overlook something, or do I have to do this in code somehow?

    Ginsengelf
    Attached Images Attached Images

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Align icons horizontally in QListWidget in IconMode

    http://www.qtcentre.org/threads/5933...size-and-align

    In brief: QListView::setGridSize()
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. Replies: 0
    Last Post: 18th January 2016, 04:41
  2. Caching icons in QListView::IconMode
    By slash_blog in forum Qt Programming
    Replies: 2
    Last Post: 1st September 2011, 15:13
  3. QListWidget vertical align in iconmode
    By pvdk in forum Qt Programming
    Replies: 0
    Last Post: 6th April 2011, 16:02
  4. Replies: 2
    Last Post: 23rd February 2010, 08:52
  5. QListWidget in iconMode with only 1 row
    By ChiliPalmer in forum Qt Programming
    Replies: 1
    Last Post: 20th December 2009, 09:18

Tags for this Thread

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.