Results 1 to 9 of 9

Thread: Hex viewer in qt?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Re: Hex viewer in qt?

    Thanks for Reply.

    Ok, I will try your code but want to ask one thing where u pass the file Bytes into the text edit.

    Can this function is enough to do the job or I have to implement some other feature also of text edit.

    Also I want to know whether function like
    getAddressFromPosition
    is inbuild function or they are defined by you.

  2. #2
    Join Date
    May 2006
    Location
    Bangalore,India
    Posts
    235
    Thanks
    7
    Thanked 25 Times in 24 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Hex viewer in qt?

    m_pProgamWindow->setText(text); //where text is QString and m_pProgamWindow is object of text editor

  3. #3
    Join Date
    Apr 2011
    Location
    Gurgaon
    Posts
    32
    Thanks
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Hex viewer in qt?

    Hey Rajesh is Text edit sufficient to handle the large amount of data ?
    I mean if the data is of 20 Gb of a single file?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Hex viewer in qt?

    is Text edit sufficient to handle the large amount of data ? I mean if the data is of 20 Gb of a single file?
    Almost certainly not if you are intending to load the entire file into RAM. You'll need a 64-bit environment, probably 64GB+ of RAM, and lots of coffee for waiting time to even have a chance.

    Loading a small working section, ie.e page at a time, of a file is trivial enough using seek() and read(). Alternatively you can use QFile::map() to make part of a huge file appear in-memory.

Similar Threads

  1. Requirement for versatile image viewer
    By deekayt in forum General Discussion
    Replies: 1
    Last Post: 27th October 2006, 14:28
  2. How can i build a source viewer for debugger
    By blobgrinder in forum Qt Programming
    Replies: 3
    Last Post: 24th October 2006, 11:50
  3. ".hlp" viewer
    By boss_bhat in forum Qt Programming
    Replies: 3
    Last Post: 6th June 2006, 14:44
  4. jpeg viewer
    By chap19150 in forum Qt Programming
    Replies: 9
    Last Post: 6th June 2006, 11:57
  5. Image Viewer
    By sumsin in forum Qt Programming
    Replies: 3
    Last Post: 14th March 2006, 13:29

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.