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. Using large data structure for storage!
Forum Update on Monday, May 27th 2025

Using large data structure for storage!

Scheduled Pinned Locked Moved Solved General and Desktop
qstringlistmax size
22 Posts 2 Posters 8.1k 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.
  • jsulmJ jsulm

    @Kushan How long?

    K Offline
    K Offline
    Kushan
    wrote on last edited by
    #13

    @jsulm actually
    QString Test="New,0,0,Instrument1,Order,Buy,100,Amend, Quote"

    jsulmJ 1 Reply Last reply
    0
    • K Kushan

      @jsulm actually
      QString Test="New,0,0,Instrument1,Order,Buy,100,Amend, Quote"

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

      @Kushan That's not long.
      Please debug you app to see where it is crashing. I'm out of ideas as the code you posted doesn't crash and there is not enough information to tell you why your app is crashing.

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

      K 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Kushan That's not long.
        Please debug you app to see where it is crashing. I'm out of ideas as the code you posted doesn't crash and there is not enough information to tell you why your app is crashing.

        K Offline
        K Offline
        Kushan
        wrote on last edited by
        #15

        @jsulm Thanx alot how to use the debug?

        jsulmJ 1 Reply Last reply
        0
        • K Kushan

          @jsulm Thanx alot how to use the debug?

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

          @Kushan Take a look at http://doc.qt.io/qtcreator/creator-debugging-example.html
          and http://doc.qt.io/qtcreator/creator-debugging.html

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

          K 1 Reply Last reply
          2
          • jsulmJ jsulm

            @Kushan Take a look at http://doc.qt.io/qtcreator/creator-debugging-example.html
            and http://doc.qt.io/qtcreator/creator-debugging.html

            K Offline
            K Offline
            Kushan
            wrote on last edited by
            #17

            @jsulm Thanx for sparing your time

            jsulmJ 1 Reply Last reply
            0
            • K Kushan

              @jsulm Thanx for sparing your time

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

              @Kushan No problem

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

              K 1 Reply Last reply
              0
              • jsulmJ jsulm

                @Kushan No problem

                K Offline
                K Offline
                Kushan
                wrote on last edited by
                #19

                @jsulm Actually the error is indexout of bound but I havent declared any size anywhere in my code for all the structures I have used!

                jsulmJ 1 Reply Last reply
                1
                • K Kushan

                  @jsulm Actually the error is indexout of bound but I havent declared any size anywhere in my code for all the structures I have used!

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

                  @Kushan Are you accessing list elements using [] anywhere in your code like

                  QList<QString> list;
                  qDebug() <<list[0];
                  

                  ?

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

                  K 2 Replies Last reply
                  0
                  • jsulmJ jsulm

                    @Kushan Are you accessing list elements using [] anywhere in your code like

                    QList<QString> list;
                    qDebug() <<list[0];
                    

                    ?

                    K Offline
                    K Offline
                    Kushan
                    wrote on last edited by
                    #21

                    @jsulm yes :( But the problem is that I have never declared a specific size but only used size() method in for loops!

                    1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @Kushan Are you accessing list elements using [] anywhere in your code like

                      QList<QString> list;
                      qDebug() <<list[0];
                      

                      ?

                      K Offline
                      K Offline
                      Kushan
                      wrote on last edited by
                      #22

                      @jsulm Got it solved it was in the textfile that I used to read into the QList because the value I gave is more than the number of elements in the text file that I read!

                      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