There is no need to convert a QString to const char*. We can use const char* directly. (cherry picked from commit 65aef613)