QString Error
Unsolved
General and Desktop
-
wrote on 9 Jun 2017, 16:32 last edited by
-
wrote on 9 Jun 2017, 16:38 last edited by
Hi sad2 ,
what OS are you using?
-
wrote on 9 Jun 2017, 17:40 last edited by
how commando_ant is declared?
By the way fromAscii is obsolete you can use fromLatin1() instead.
It still should be available though. -
wrote on 9 Jun 2017, 17:52 last edited by Eddy 6 Sept 2017, 17:52
from the qstring.h sources :
#if QT_DEPRECATED_SINCE(5, 0) QT_DEPRECATED static inline QString fromAscii(const char *str, int size = -1) { return fromLatin1(str, size); } QT_DEPRECATED static inline QString fromAscii(const QByteArray &str) { return fromLatin1(str); } Q_REQUIRED_RESULT QByteArray toAscii() const { return toLatin1(); } #endif
So obviously it is in there but, you have to change some settings in your app. I would follow @AlexMal 's advice however.
1/4