What causes QString::toStdString() crashing is usually compiling and linking settings, or mixing debug and release version library, or different compilers.

If you make sure all libs have been compiled with the same compilers with the exactly compiling and linking settings, it would work fine.