PDA

View Full Version : setting data of buffer to QTreeWidget column



thomasjoy
9th August 2007, 12:53
hi all
i am using Mac OSX and QT4.1
i have a buffer of required data....so i want to know is there any direct way to set data to QTreeWidget's (one of) column

if yes do tell me by example or if not then please tell any idea how we can write buffer data to column

as i am trying to create Hex Viewer in QT 4.1
so i wanna set that data in ascii text line as it is shown in Hex Edit

TIA

jpn
15th August 2007, 17:12
Make textual presentation of the data and use QTreeWidgetItem::setText(). However, if I was you, I'd write a wrapper model around the data and use a view instead. :)