QString str = "hello";
When I debug the code in Visual Studio 2010 and add a watch to str
, I'm unable to get the data it contains as a string. The watch shows only the internal byte array.
How can I get the value of a QString
as a text string, rather than a byte array?
I tried in VS2008 as well, and i was getting the value as text string.