I am trying to convert QString into char*. The code that i have been using is
QString username = useradd->text();
QByteArray un=username.toLatin1();
const char *str = un.data();
Where useradd is the name given to "lineedit"
On compilation the following error occurs
class
QStringhas no member namedtoLatin1