PDA

View Full Version : print value



valy12
21st April 2010, 13:41
Hello,

how can i do to print value of some variables somewhere to test them?

csaken
21st April 2010, 13:54
Hello,

You can use qDebug(), qWarning(), qCritical(), qFatal() global functions to display various informations.
The information will be displayed on console.

Example:


qDebug()<<"Variable value is "<<yourVariable;

You can find more informations here:

http://doc.qt.nokia.com/4.6/qdebug.html#details

Regards,
Jancsi

Lykurg
21st April 2010, 14:40
Run your application in debug mode and set a breakpoint. Then you can see all your variables and their current values.

valy12
21st April 2010, 16:32
Great! thanks :D