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. qvector display contents in debug
Forum Updated to NodeBB v4.3 + New Features

qvector display contents in debug

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 796 Views 1 Watching
  • 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.
  • R Offline
    R Offline
    rafael
    wrote on last edited by
    #1

    I want to see all the elements in the vector when debugging.

     for (int i=0; i < 5000; i++)
        {
            m_xaxis.push_back(i);
            m_yaxis.push_back(dice()+1);
        }
    

    it says there are currently 5000 items but i can only see the first 100.

    m_xaxis	<5000 items>	QVector<int>
    m_yaxis	<5000 items>	QVector<double>
    

    what do i need to type in when i add a new evaluated expression to make it display the entire contents of the vector.

    thanks.

    1 Reply Last reply
    0
    • JohanSoloJ Offline
      JohanSoloJ Offline
      JohanSolo
      wrote on last edited by
      #2

      IIRC the number of displayed items depends on your debugger only.

      `They did not know it was impossible, so they did it.'
      -- Mark Twain

      1 Reply Last reply
      1

      • Login

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