Remove toStdString().c_str() from conversion of QString to char *
The method QString::toStdString() is only available when Qt is compiled with STL compatibility enabled.
Use the .toUtf8().constData() construction.
The method QString::toStdString() is only available when Qt is compiled with STL compatibility enabled.
Use the .toUtf8().constData() construction.