I would like to display binary file in QTextEdit but cannot find the right way to do so. I am trying to load the file and display its whole content. I have tried to load file's content as QTextStream, QDataStream and ByteArray but nothing let me display the file correctly...seems to me that problem is in QString.
- setText method seems to accept only QString (some automatic conversions seems to be possible)
- when setText displays QString, it finishes when it reaches byte 00 which represents \0 (null termination) thus I can see only first few bytes before first 00
Do you guys know any efficient and easy way how to solve it? Thanks
Bookmarks