Qt 6.11 is out! See what's new in the release
blog
Updating a reference to a QString
General and Desktop
2
Posts
1
Posters
590
Views
1
Watching
-
Hello,
I have a function which works, but I don't know how to return the result : question inside :
@ QString & CMyClass::CustomFunction(const QString & s)
{
QByteArray ba = s.toLocal8Bit();
const char *c_s = ba.data();
// various operations on c_s...
QString sResult = QString::fromLocal8Bit(c_s);- // But how to convert back sResult to s ?*
return (this->*OriginbalFunction)(s);
}
@Thanks.