Results 1 to 4 of 4

Thread: Item View classes and returning data !

  1. #1
    Join Date
    Nov 2008
    Posts
    18
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Item View classes and returning data !

    Sorry about that ! wrong subforum
    Last edited by xerionn; 15th January 2009 at 08:05. Reason: Mistake Please Delete

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Item View classes and returning data !

    Get the current index from the view or the selected indexes from the view's selection model and then use QAbstractItemModel::index() to move the index received to the fifth column and finally use QAbstractItemModel::data() or QModelIndex::data() to fetch the data itself.

  3. The following user says thank you to wysota for this useful post:

    xerionn (16th January 2009)

  4. #3
    Join Date
    Nov 2008
    Posts
    18
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Item View classes and returning data !

    Wysota thanks again for your time and answer. But i think i do something wrong :S Posting here was a mistake or maybe not :P i am still newbie hehe. Please check my post over to http://www.qtcentre.org/forum/f-qt-p...html#post89769

    Thank you in advance !

    PS. I dont know why i but i remember chaning the title to please delete mhm. Sorry about that !
    Last edited by xerionn; 16th January 2009 at 00:15.

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Item View classes and returning data !

    Please don't do that again and don't multipost. Let moderators moderate the forum.

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.