Results 1 to 2 of 2

Thread: How to create HexViewer for a file

Hybrid View

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

    Question How to create HexViewer for a file

    hi all
    i am working on QT4.1 on Mac Platform
    i want to know if i want to show the Hex view of a file then what basic widgets to start i have to use and how to show them like same as Hex Edit show to a file.

    like
    --------------------------------------------------------------
    |offset |0 1 2 3 4 5 6 7 8 9 A B C D E F |ASCII Text |
    |-------------------------------------------------------------
    |


    TIA

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to create HexViewer for a file

    See this thread: http://www.qtcentre.org/forum/f-qt-p...ghlight=editor.

    But I guess you have many options. You could use even a QTableView with a Qt::NoPen grid.

    As for actually displaying hex data and offsets take a look at QIODevice & QFile for reading buffers from files.

    Regards

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

    thomasjoy (7th August 2007)

Similar Threads

  1. Replies: 4
    Last Post: 18th December 2009, 18:55
  2. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  3. Sending Binary File with QFTP
    By nbkhwjm in forum Newbie
    Replies: 2
    Last Post: 7th March 2007, 18:10
  4. How to create a install file ?
    By probine in forum General Discussion
    Replies: 4
    Last Post: 22nd May 2006, 08:00
  5. create file in another directory
    By raphaelf in forum Qt Programming
    Replies: 3
    Last Post: 16th February 2006, 10:04

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.