@devbrs You certainly must check if taglib is null. And you must use toUTF8() instead of toAscii().
The last problem is that some of the string conversion functions in TagLib don't appear to work with the QString conversion functions.
Namely the functions that create c++ string and wstring objects:
QString::fromStdString(tag->title().to8Bit());
QString::fromStdWString(tag->title().toWString());
The functions that return c style string pointers do work:
QString::fromWCharArray(tag->title().toCWString());
QString(tag->title().toCString(true));
Now, why the string functions work on Linux and not on the Mac, I don't know. Perhaps you could delve into it.