Results 1 to 13 of 13

Thread: read data from QtDatastream

Hybrid View

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

    Default Re: read data from QtDatastream

    The important part is to convert the values from the query into the actual data type before writing into the data stream.

    You likely also want a "header" like in the other direction, e.g. a number that indicates the size of the message to wait for before decoding.

    Cheers,
    _

  2. #2
    Join Date
    Feb 2018
    Posts
    24
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: read data from QtDatastream

    You likely also want a "header" like in the other direction, e.g. a number that indicates the size of the message to wait for before decoding.

    Cheers,
    _
    I will try to redo the server, can you give an example of the client method? So I'm sure I'm on the right track,Tank
    Last edited by Nio74; 13th March 2019 at 10:26.

Similar Threads

  1. Can't read map data
    By bikonja in forum Newbie
    Replies: 8
    Last Post: 16th July 2015, 15:46
  2. Serial read misses to read data from the serial port
    By mania in forum Qt for Embedded and Mobile
    Replies: 11
    Last Post: 18th August 2014, 08:49
  3. read data from website
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 4
    Last Post: 27th June 2013, 11:32
  4. Read data from txt file
    By wiatrak11 in forum Newbie
    Replies: 4
    Last Post: 10th March 2013, 16:50
  5. can`t read a binary data!
    By blm in forum Qt Programming
    Replies: 8
    Last Post: 18th September 2008, 16:56

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.