TagLib::String to QString

Scott Wheeler wheeler at kde.org
Sat Sep 3 07:48:17 UTC 2011


On Sep 2, 2011, at 2:06 PM, Surya Kiran Gullapalli wrote:

> I'm a newbie to TagLib. I'm using TagLib (1.7) along with Qt (4.7) on
> ubuntu   11.04. When trying to access Tag information from mp3 file
> and displaying
>   the same, I'm experiencing a crash in conversion of TagLib::String
> to  QString. I've tried
> 
>   TStringToQString (s), QString::fromStdWString(s.toWString()) functions.

This almost certainly has nothing to do with the string conversion -- your pointer to the tag / file / string is probably invalid.  Since you're on Ubuntu, I'd recommend running your program under valgrind.

-Scott


More information about the taglib-devel mailing list