_() function does not work here.
Compiler claims about casting. Maybe a std::string:c_string could help... but what speaks against QObject::tr()?