Hello,
how can i do to print value of some variables somewhere to test them?
Printable View
Hello,
how can i do to print value of some variables somewhere to test them?
Hello,
You can use qDebug(), qWarning(), qCritical(), qFatal() global functions to display various informations.
The information will be displayed on console.
Example:
Code:
qDebug()<<"Variable value is "<<yourVariable;
You can find more informations here:
http://doc.qt.nokia.com/4.6/qdebug.html#details
Regards,
Jancsi
Run your application in debug mode and set a breakpoint. Then you can see all your variables and their current values.
Great! thanks :D