Results 1 to 2 of 2

Thread: Can i get index list that showed in viewport?

  1. #1

    Default Can i get index list that showed in viewport?

    hi, Can i get the indexes that are showing in viewport of QListView/QTreeView?

    thanks!

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can i get index list that showed in viewport?

    You would probably have to write a little function that goes from the top of the view to the bottom and then use QAbstractItemView::indexAt() to provide you with a model index. That will probably give you the info you want.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

Similar Threads

  1. List View with sections for alphabetialy sorted list
    By woodtluk in forum Qt Programming
    Replies: 4
    Last Post: 12th October 2010, 11:50
  2. Replies: 0
    Last Post: 28th April 2010, 11:41
  3. Replies: 2
    Last Post: 12th February 2009, 09:53
  4. No Background image showed
    By jiveaxe in forum Installation and Deployment
    Replies: 2
    Last Post: 30th December 2007, 13:25
  5. ViewPort Properties
    By Kapil in forum Qt Programming
    Replies: 6
    Last Post: 23rd March 2006, 11:57

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
  •  
Qt is a trademark of The Qt Company.