Results 1 to 4 of 4

Thread: Store data in bits & Bytes

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: Store data in bits & Bytes

    QFile is a QIODevice subclass. QIODevice has low level read and write methods that write byte arrays (C style char* or Qt/C++ QByteArray).

    This has nothing to do with QDataStream, that class is for serializing data types in a Qt specific format. Your data format is different so you obviously need to write the "parsing" and "formatting" code into bytes yourself.

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    2lights (9th September 2013)

Similar Threads

  1. Replies: 4
    Last Post: 23rd October 2012, 09:40
  2. How to store data in a tablemodel
    By rubikon in forum Newbie
    Replies: 11
    Last Post: 13th August 2012, 15:18
  3. Replies: 7
    Last Post: 12th September 2011, 11:52
  4. Need ideas on how to store data in SQL-Database
    By homerun4711 in forum Newbie
    Replies: 3
    Last Post: 6th January 2011, 00:10
  5. can't set serial port data bits
    By yyiu002 in forum Qt Programming
    Replies: 6
    Last Post: 23rd June 2010, 23:28

Tags for this Thread

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.