View Full Version : Item View classes and returning data !
xerionn
15th January 2009, 04:54
Sorry about that ! wrong subforum
wysota
15th January 2009, 08:08
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.
xerionn
16th January 2009, 00:04
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-programming-2/t-default-item-view-classes-and-returning-data-from-model-18050-post89769.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 !
wysota
16th January 2009, 08:52
Please don't do that again and don't multipost. Let moderators moderate the forum.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.