6.0.0-rc4Source

QNoDebug Class

The QNoDebug class is a stream that discards everything written to it. More…

Header#include <QtCore/qlogging.h>
CMaketarget_link_libraries(app PRIVATE Nt::Core)
ModuleNt Core C++ Classes

List of all members, including inherited members

Public Functions

QNoDebug()
QNoDebug &operator<<(const T &)
QNoDebug &space()
QNoDebug &nospace()
QNoDebug &quote()
QNoDebug &noquote()
QNoDebug &maybeSpace()

Detailed Description

When QT_NO_DEBUG_OUTPUT, QT_NO_INFO_OUTPUT or QT_NO_WARNING_OUTPUT is defined, qDebug(), qInfo() or qWarning() produces a QNoDebug, so that the statement compiles to nothing.

See also QDebug.

Differences from Qt

There are no stream manipulators.

Member Function Documentation

[constexpr] QNoDebug::QNoDebug()

Constructs a stream that discards everything written to it.

QNoDebug & QNoDebug::maybeSpace()

Does nothing, and returns a reference to the stream.

QNoDebug & QNoDebug::noquote()

Does nothing, and returns a reference to the stream.

QNoDebug & QNoDebug::nospace()

Does nothing, and returns a reference to the stream.

template <typename T>QNoDebug & QNoDebug::operator<<(const T &)

Discards the value and returns a reference to the stream.

QNoDebug & QNoDebug::quote()

Does nothing, and returns a reference to the stream.

QNoDebug & QNoDebug::space()

Does nothing, and returns a reference to the stream.