I have a custom QVector class, which has a single function: to return the element of the vector fulfilling some conditions.
Here is some code: customvector.h