Results 1 to 2 of 2

Thread: QModelIndex question?

  1. #1
    Join Date
    Oct 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X

    Default QModelIndex question?

    QModelIndex index = TreeView-> currentIndex ();
    How to set a unique value for the index






    Thank you very much........

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QModelIndex question?

    Use setData() of the model with an user role.

Similar Threads

  1. QModelIndex question
    By waynew in forum Qt Programming
    Replies: 2
    Last Post: 10th February 2010, 01:53
  2. getting data & QModelIndex
    By alexandernst in forum Newbie
    Replies: 3
    Last Post: 6th August 2009, 19:43
  3. QModelIndex::parent question
    By QPlace in forum Qt Programming
    Replies: 4
    Last Post: 26th June 2009, 12:26
  4. Problem with QModelIndex
    By Kesy in forum Qt Programming
    Replies: 6
    Last Post: 30th October 2008, 08:44
  5. QModelIndex problem!
    By landonmkelsey in forum Qt Programming
    Replies: 10
    Last Post: 28th August 2008, 19:46

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.