In Qt, finding the minimum or maximum value in a QList or QVector can be frustrating sometimes and it also will complicate things when you just want a quick and simple minimum and maximum. Use the pieces of codes below to get them with a single line of code.
Continue reading “How to Find Min and Max in a Vector (Qt + STL)”