Results 1 to 3 of 3

Thread: Displaying Images in QListView with same thumbnail size keeping aspect ratio

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Displaying Images in QListView with same thumbnail size keeping aspect ratio

    You could try setUniformItemSize() and/or setGridSize() for the positioning problem.
    And setIconSize() for the size problem.

    Cheers,
    _

  2. #2
    Join Date
    Nov 2012
    Posts
    35
    Thanks
    1
    Thanked 7 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Displaying Images in QListView with same thumbnail size keeping aspect ratio

    Quote Originally Posted by anda_skoa View Post
    You could try setUniformItemSize() and/or setGridSize() for the positioning problem.
    And setIconSize() for the size problem.

    Cheers,
    _
    now i m using QTableView, what do i use for that here is the code

Similar Threads

  1. Replies: 1
    Last Post: 4th August 2012, 05:55
  2. Printing and Aspect ratio
    By cpt4 in forum Qwt
    Replies: 9
    Last Post: 30th September 2011, 14:28
  3. How to get aspect ratio on selection with rubberBand?
    By suseway in forum Qt Programming
    Replies: 6
    Last Post: 25th October 2010, 08:29
  4. keeping aspect ratio while resizing
    By franco.amato in forum Qt Programming
    Replies: 2
    Last Post: 19th November 2009, 20:12
  5. Preserving aspect ratio of image
    By Banjo in forum Qt Programming
    Replies: 2
    Last Post: 16th January 2009, 13:39

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.