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!

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.
  • J jsulm
    18 Oct 2017, 06:15

    @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 18 Oct 2017, 06:20 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
    • J jsulm
      18 Oct 2017, 06:15

      @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 18 Oct 2017, 06:31 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

      21/22

      18 Oct 2017, 06:20

      • Login

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