Thursday, October 15, 2009

How to convert String to QString

QString StringToQString(String^ string)
{
    pin_ptr<const wchar_t> chars = PtrToStringChars(string);
    return QString::fromUtf16((const ushort*)chars);
}


See also: How to convert QString to String

No comments:

Post a Comment