Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to output qtcreatr to debuger console?
How to output qtcreatr to debuger console?
# include & ltQDebug & gt

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.