QT printf

qDebug ("message %d, says: %s",num,str);
qDebug() << "Debug Message";
qDebug messages are removed if "QT_NO_DEBUG_OUTPUT" is defined, so it will be useful than printf.

And refer to other message out methods.

qWarning() << "Warning Message";
qCritical() << "Critical Error Message";
qFatal() << "Fatal Error Message";

Have a good day!

#include < stdio.h>
#include < QDebug>

int main()
    qDebug() << "QDebug.h";


Popular posts from this blog

(OpenCV Study) Background subtractor MOG, MOG2, GMG example source code (BackgroundSubtractorMOG, BackgroundSubtractorMOG2, BackgroundSubtractorGMG)

OpenCV Stitching example (Stitcher class, Panorama)

Example source code of extract HOG feature from images, save descriptor values to xml file, using opencv (using HOGDescriptor )

Real-time N camera stitching Class.

Optical Flow sample source code using OpenCV

OpenCV Drawing Example, (line, circle, rectangle, ellipse, polyline, fillConvexPoly, putText, drawContours)

Video Stabilization example source code, (using cvFindHomography, cvWarpPerspective functions in openCV)

SICK LMS511 sensor data acquisition interface (source code, C++/MFC)

8 point algorithm (Matlab source code) / The method to get the Fundamental Matrix and the Essential matrix

Image warping (using opencv findHomography, warpPerspective)