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!
Qt 6.11 is out! See what's new in the release blog

Using large data structure for storage!

Scheduled Pinned Locked Moved Solved General and Desktop
qstringlistmax size
22 Posts 2 Posters 15.8k 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 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