Function qt_core::q_text_stream::endl

source ·
pub unsafe fn endl(s: impl CastInto<Ref<QTextStream>>) -> Ref<QTextStream>
Expand description

Writes '\n' to the stream and flushes the stream.

Calls C++ function: QTextStream& endl(QTextStream& s).

C++ documentation:

Writes ‘\n’ to the stream and flushes the stream.

Equivalent to

stream << ‘\n’ << flush;

Note: On Windows, all '\n' characters are written as '\r\n' if QTextStream's device or string is opened using the QIODevice::Text flag.

See also flush(), reset(), and QTextStream manipulators.