When you add elements to a QVector (or std::vector), it sometimes must allocate more space for new elements and to achieve that it might have to move all elements to another place in the memory. If this happens, all pointers to previous elements will be invalid.Originally Posted by vratojr




Reply With Quote

Bookmarks