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. Structure to be written&read in and from data file
QtWS25 Last Chance

Structure to be written&read in and from data file

Scheduled Pinned Locked Moved General and Desktop
structfiledata
2 Posts 2 Posters 1.9k 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.
  • A Offline
    A Offline
    Adityan J
    wrote on 24 Jun 2015, 03:03 last edited by
    #1
    {
        double data[1024];
        QString dname;
        QDate d;
        QTime t;
    };
    

    I have to save this structure into a data file and then later view it's contents in a plot format , is there any way to do so ? I have tried file.write() and file.read() , but it doesn't work properly

    P 1 Reply Last reply 24 Jun 2015, 07:14
    0
    • A Adityan J
      24 Jun 2015, 03:03
      {
          double data[1024];
          QString dname;
          QDate d;
          QTime t;
      };
      

      I have to save this structure into a data file and then later view it's contents in a plot format , is there any way to do so ? I have tried file.write() and file.read() , but it doesn't work properly

      P Offline
      P Offline
      p3c0
      Moderators
      wrote on 24 Jun 2015, 07:14 last edited by
      #2

      @Adityan-J Yes. Use QDataStream and QFile.
      Here's one example.

      157

      1 Reply Last reply
      0

      2/2

      24 Jun 2015, 07:14

      • Login

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