Hi,
How can we display the string value of a QString in Eclipse when debugging? I tried adding a watch with variablename.toAscii(), but no luck!
Thanks!
Hi,
How can we display the string value of a QString in Eclipse when debugging? I tried adding a watch with variablename.toAscii(), but no luck!
Thanks!
Hi,
what about http://www.google.com/search?q=qstring+gdb ? :-) (assuming that Eclipse is using GDB).
Or, maybecould work.Qt Code:
static_cast<const char*>(variablename.toAscii())To copy to clipboard, switch view to plain text mode
Bookmarks