[prev in list] [next in list] [prev in thread] [next in thread]
List: taglib-devel
Subject: Creating FileRef object from QString
From: Plasty Grove <plasty.grove () gmail ! com>
Date: 2009-12-05 19:11:35
Message-ID: eb2963f20912051059i509d1b74o677e2822f9e693d4 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi,
I'm developing using qt and have a situation where I have to create a
FileRef object from a QString object.
--------------------------------------------------
TagLib::FileRef tagFile("/home/mydir/music/song.mp3") //---> Works fine
--------------------------------------------------
QString qstr = "/home/mydir/music/song.mp3";
const char* str = qstr.toLocal8Bit().constData();
TagLib::FileRef tagFile(str); //---> Doesn't work, shows as empty in
debugger and segfaults when I try to access
--------------------------------------------------
What am I doing wrong here?
Thanks,
Plasty.
[Attachment #5 (text/html)]
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>
_______________________________________________
taglib-devel mailing list
taglib-devel@kde.org
https://mail.kde.org/mailman/listinfo/taglib-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic