Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. how to split a Qstring
Forum Updated to NodeBB v4.3 + New Features

how to split a Qstring

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 329 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sankarapandiyan
    wrote on 20 Jun 2018, 07:24 last edited by VRonin
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRonin
      wrote on 20 Jun 2018, 07:44 last edited by
      #2

      As explained here you should use QDataStream to safely serialise your data. It looks like you are assuming that readAll() reads 1 and exactly 1 "data point" but that's not the case, readAll() reads everything that's on the serial, it could be 1, 100 or even a partial piece of data

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      4

      1/2

      20 Jun 2018, 07:24

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved