i have a file name stored in a varible of type qtstring and i need to move it into a variable of type string.... but i don't know how .... can you help me pleeeeeeeeeeeez.
How to convert from a QTString type to String type in C++ .......... please help me?
#include %26lt;QString%26gt;
#include %26lt;string%26gt;
using namespace std;
const std::string %26amp; qt2string(
std::string %26amp; dest, const qtstring %26amp; src )
{
dest = (const char*) src.data();
return dest;
}
kudzu
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment