Results 1 to 4 of 4

Thread: puzzle about change QModelIndex's position?

  1. #1
    Join Date
    May 2010
    Posts
    42

    Question puzzle about change QModelIndex's position?

    Hi!
    If someone can tell me how to change QModelIndex's index position?

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: puzzle about change QModelIndex's position?

    Can you explain a bit more ?

  3. #3
    Join Date
    May 2010
    Posts
    42

    Default Re: puzzle about change QModelIndex's position?

    Quote Originally Posted by aamer4yu View Post
    Can you explain a bit more ?
    It is that the QModelIndex object index is pointing to the last one of the listView.and i want to repoint to first one.how can i implement it?If you have understanded?

  4. #4
    Join Date
    Oct 2010
    Location
    Spain
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: puzzle about change QModelIndex's position?

    This will help you http://doc.qt.nokia.com/4.7/qabstrac...etCurrentIndex
    It's a QListView method inherited from qabstractitemview

Similar Threads

  1. how to change the position of menu of QMainWindow
    By yxmaomao in forum Qt Programming
    Replies: 11
    Last Post: 17th September 2016, 16:12
  2. Change position according to QCheckBox State
    By champ in forum Qt Programming
    Replies: 5
    Last Post: 6th June 2010, 18:37
  3. How to change the QModelIndex with keyboard
    By aekilic in forum Qt Programming
    Replies: 6
    Last Post: 1st March 2010, 22:02
  4. How to change the content's position in viewport?
    By aaron in forum Qt Programming
    Replies: 3
    Last Post: 24th March 2009, 08:37
  5. Replies: 1
    Last Post: 13th September 2008, 11:00

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.