Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

qvector display contents in debug



  • 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.



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


Log in to reply