Assert value or Index out of range
-
We have no way to know that.
Only you can debug your code and look for that mistake where you try to get an value from an index that is not in your list (like if you have a QList with 10 elements the valid indexes will be between [0] and [9])
And be extra careful if your list is shared between threads - you can take the size of the list in a thread, but if the access to the list is not properly locked another thread can remove elements from the list and then the first thread will try to access invalid indexes.