Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QString toUtf8 () is not working.
I am compiling Qt 5.1.1 with VS 2008 and this code below is giving me error that "error C2039: 'toUtf8' : is not a member of 'QString".
QByteArray utf8Out = description.toUtf8 ();
description is a QString.
I dont know what I am doing wrong.
where did you get this Qt version from?
The Qt source code doesn't contain any macros which would hide the QString::toUtf8() method.
Thanks for your reply.
Somehow some changes are done in qstring.h at the time of fixing errors in my project. I made the correction.
so it's working now for you?
Yeah, it is working now.
But now I am getting linking errors on compiling Qt 51.1 with Visual Studio 2008. I have already started a new discussion in the forum about the issue. Please have a look if you have any idea about the same.