Example 1:
qDebug()& lt; & lt "Output debugging"; //Output content: "Output debugging"
Example 2:
int a = 1;
qDebug()& lt; & lta; //Output content: 1
Example 3:
QRect rect(0,0,0,0);
qDebug()& lt; & ltrect// Output content: qrect (0,0,0,0)
This output is very general, it can output many formats and many classes.