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 774 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 2 Jun 2021, 07:46 last edited by
    #1
    This post is deleted!
    J 1 Reply Last reply 2 Jun 2021, 08:05
    0
    • B Beginner_to_code
      2 Jun 2021, 07:46

      This post is deleted!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 2 Jun 2021, 08:05 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 2 Jun 2021, 08:08
      1
      • J jsulm
        2 Jun 2021, 08:05

        @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 2 Jun 2021, 08:08 last edited by
        #3
        This post is deleted!
        J 1 Reply Last reply 2 Jun 2021, 08:11
        0
        • B Beginner_to_code
          2 Jun 2021, 08:08

          This post is deleted!

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 2 Jun 2021, 08:11 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 2 Jun 2021, 08:22
          1
          • J jsulm
            2 Jun 2021, 08:11

            @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 2 Jun 2021, 08:22 last edited by
            #5
            This post is deleted!
            J J 2 Replies Last reply 2 Jun 2021, 08:25
            0
            • B Beginner_to_code
              2 Jun 2021, 08:22

              This post is deleted!

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 2 Jun 2021, 08:25 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
                2 Jun 2021, 08:22

                This post is deleted!

                J Offline
                J Offline
                JonB
                wrote on 2 Jun 2021, 08:25 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

                1/7

                2 Jun 2021, 07:46

                • Login

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