Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Writing data to file using QMap
Forum Updated to NodeBB v4.3 + New Features

Writing data to file using QMap

Scheduled Pinned Locked Moved Unsolved Qt 6
7 Posts 3 Posters 735 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.
  • B Offline
    B Offline
    Beginner_to_code
    wrote on last edited by
    #1
    This post is deleted!
    jsulmJ 1 Reply Last reply
    0
    • B Beginner_to_code

      This post is deleted!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Beginner_to_code said in Writing data to file using QMap:

      Somebody help me to solve this

      Solve what exactly?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Beginner_to_code said in Writing data to file using QMap:

        Somebody help me to solve this

        Solve what exactly?

        B Offline
        B Offline
        Beginner_to_code
        wrote on last edited by
        #3
        This post is deleted!
        jsulmJ 1 Reply Last reply
        0
        • B Beginner_to_code

          This post is deleted!

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Beginner_to_code said in Writing data to file using QMap:

          I want to implement QMap in this instead of structure..

          Then do so.
          What exactly is the problem? Do you want that somebody else rewrites the code for you?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          B 1 Reply Last reply
          1
          • jsulmJ jsulm

            @Beginner_to_code said in Writing data to file using QMap:

            I want to implement QMap in this instead of structure..

            Then do so.
            What exactly is the problem? Do you want that somebody else rewrites the code for you?

            B Offline
            B Offline
            Beginner_to_code
            wrote on last edited by
            #5
            This post is deleted!
            jsulmJ JonBJ 2 Replies Last reply
            0
            • B Beginner_to_code

              This post is deleted!

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Beginner_to_code You are not asking a concrete question. It is not clear what ideas/help you need.
              I will try though:

              struct  sim_struct
              {
                      int TimeStamp;
              //        QVector<float> data;
                      float data[160];
              }
              
              // -->
              QMap<int, std::array<float, 160>> map;
              

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • B Beginner_to_code

                This post is deleted!

                JonBJ Online
                JonBJ Online
                JonB
                wrote on last edited by
                #7

                @Beginner_to_code
                Like @jsulm I don't know what it is you want to do or what the problem is. But I note you wrote

                now i have to write same data to a csv file without client socket using Qmap

                What I don't get is: QMap is a data structure. It has nothing to do with "client socket". You either need a socket or you don't. What connection/link is there between your use of QMap and your use, or not, of "client socket"?

                1 Reply Last reply
                0

                • Login

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