Originally Posted by barrygp --------------- Works: QString s = QString(tr("whatever")); std::string str = std::string(s.toAscii().data()); const char * asdfasdf = str.c_str(); qDebug(asdfasdf); here you have created a std::string str and asdfasdf = str.c_str() is available at qDebug(asdfasdf).
Last edited by zhnde; 4th September 2009 at 20:24.
Forum Rules
Bookmarks