Hello,
how can i do to print value of some variables somewhere to test them?
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:
Qt Code:
qDebug()<<"Variable value is "<<yourVariable;To copy to clipboard, switch view to plain text mode
You can find more informations here:
http://doc.qt.nokia.com/4.6/qdebug.html#details
Regards,
Jancsi
valy12 (21st April 2010)
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)
Great! thanks![]()
Bookmarks