Results 1 to 3 of 3

Thread: Read binary from file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Apr 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Read binary from file

    I need read file which write by spatial hardware..

    I read again http://doc.trolltech.com/4.5/qdatastream.html#details
    I don't understand: can I use it to read this binary format?

    Can I use like http://www.qtcentre.org/forum/p-how-...ostcount9.html some structures and read binary file:

    Qt Code:
    1. QDataStream in(&file);
    2. in >> header >> channelA >>channalB>> channelA >>channalB>> channelA >>channalB;
    To copy to clipboard, switch view to plain text mode 
    Last edited by weldpua2008; 1st April 2009 at 16:09.

Similar Threads

  1. cannot execute binary file
    By mgturner in forum Installation and Deployment
    Replies: 1
    Last Post: 16th March 2009, 17:04
  2. QFile can't read a file
    By Raccoon29 in forum Qt Programming
    Replies: 3
    Last Post: 11th February 2009, 20:24
  3. can`t read a binary data!
    By blm in forum Qt Programming
    Replies: 8
    Last Post: 18th September 2008, 16:56
  4. Read binary file and convert to QString
    By jaca in forum Qt Programming
    Replies: 12
    Last Post: 13th June 2008, 23:05
  5. Sending Binary File with QFTP
    By nbkhwjm in forum Newbie
    Replies: 2
    Last Post: 7th March 2007, 18:10

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.