[Qt] fix Qt5 build by using correct .toStdString()

Got a compilation error with the current master.