After removing "-std=c++11" from QMAKE_CXXFLAGS, to allow linking Qt6 on my Gentoo Linux system, g++ 13.1.1 (which defaults to C++17) complains about "endl" not being defined. Including and changing it to "std::endl" fixes the definition problem, but is not accepted by Qt6's "<<" operator.
In the end, I fixed it by replacing "endl" with good ol' "\n" instead.
After removing "-std=c++11" from QMAKE_CXXFLAGS, to allow linking Qt6 on my Gentoo Linux system, g++ 13.1.1 (which defaults to C++17) complains about "endl" not being defined. Including and changing it to "std::endl" fixes the definition problem, but is not accepted by Qt6's "<<" operator.
In the end, I fixed it by replacing "endl" with good ol' "\n" instead.