Results 1 to 2 of 2

Thread: setting data of buffer to QTreeWidget column

  1. #1
    Join Date
    Mar 2007
    Posts
    69
    Thanks
    14
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X

    Question setting data of buffer to QTreeWidget column

    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

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: setting data of buffer to QTreeWidget column

    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.
    J-P Nurmi

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.