Results 1 to 3 of 3

Thread: QModelIndex question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Location
    USA
    Posts
    300
    Thanks
    82
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QModelIndex question

    Could someone please explain this to me?

    QModelIndex QSqlQueryModel::indexInQuery ( const QModelIndex & item ) const [protected]

    Returns the index of the value in the database result set for the given item in the model.

    What is meant by & item ???
    It's obviously not a database field value, as that is not compiling.

    And what is the relationship between the record data in the model and the model index?
    What if the user changes the record sort order. What then?
    Last edited by waynew; 10th February 2010 at 00:33.

Similar Threads

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

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.