Similar discussion: https://www.qcustomplot.com/index.php/support/forum/1913

The documentation at

https://www.qcustomplot.com/documentation/classQCPDataContainer.html

should clearly state if 'foreach' macros supported.

If supported, an example should be provided.