PDA

View Full Version : Displaying QString within Eclipse



carl
29th September 2008, 17:24
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!

martyone
30th September 2008, 09:42
Hi,

what about http://www.google.com/search?q=qstring+gdb ? :-) (assuming that Eclipse is using GDB).

Or, maybe
static_cast<const char*>(variablename.toAscii()) could work.