Yes, QString(const char*) constructor can do it. Moreover, class QString includes "hidden" constructors like (static) member functions QString QString::fromLatin1(const char*,xxx) and QString QString::fromLocal8Bit(const char*,xxx). Main constructor may be "disabled" with QT_NO_CAST_ASCII macros in the application (check it), but fromXX members will be active as ever. Read excellent Trolltech (
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.