Results 1 to 3 of 3

Thread: QAbstractItemModel shifiting up and down

  1. #1
    Join Date
    Jun 2007
    Posts
    9
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default QAbstractItemModel shifiting up and down

    There doesn't seem to be an easy method for shifting items up and down in a model that I can see.

    There is the insertRow and removeRow functions, but no way of shifting a row up and down. Is there no method defined by Qt to do this? So will I need to implement my own slot to do this?

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QAbstractItemModel shifiting up and down


  3. #3
    Join Date
    Jun 2007
    Posts
    9
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: QAbstractItemModel shifiting up and down

    Yes, that looks to be something I can definitely use! I'll have a look into it anyway! Thanks!

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.