Hi,<br><br>I'm developing using qt and have a situation where I have to create a FileRef object from a QString object.<br><br>--------------------------------------------------<br>TagLib::FileRef tagFile("/home/mydir/music/song.mp3") //---> Works fine<br>
--------------------------------------------------<br>QString qstr = "/home/mydir/music/song.mp3";<br>const char* str = qstr.toLocal8Bit().constData();<br>TagLib::FileRef tagFile(str); //---> Doesn't work, shows as empty in debugger and segfaults when I try to access<br>
--------------------------------------------------<br><br>What am I doing wrong here?<br><br>Thanks,<br>Plasty.<br><br>