Qt 6.11 is out! See what's new in the release
blog
Remove qDebug() newline?
General and Desktop
4
Posts
3
Posters
12.0k
Views
1
Watching
-
The output is emitted and end-of-line added when the QDebug object is destroyed. The typical usage pattern creates a temporary QDebug object that is used and destroyed immediately. Control its scope to control when it outputs:
@
QDebug dbg(QtDebugMsg);dbg << "One";
dbg << "Two";
@ -
[quote author="ChrisW67" date="1351030309"]The output is emitted and end-of-line added when the QDebug object is destroyed. The typical usage pattern creates a temporary QDebug object that is used and destroyed immediately. Control its scope to control when it outputs:
@
QDebug dbg(QtDebugMsg);dbg << "One";
dbg << "Two";
@[/quote]Woww..!! This is new for me... Thanks a Lot... hope will learn some more new things like this.. :)