Which is better (or faster), a C++ for loop or the foreach operator provided by Qt? For example, the following condition
for
foreach
QList
Since Qt 5.7 the foreach macro is deprecated, Qt encourages you to use the C++11 for instead. http://doc.qt.io/qt-5/qtglobal.html#foreach
(more details about the difference here : https://www.kdab.com/goodbye-q_foreach/)