Hmm... did it even compile? There is no such thing as toByteArray() for QString
Should be:
And don't surround name with str(), it will again try to do the conversion on QString which will fail.Qt Code:
print name.toAscii().constData()To copy to clipboard, switch view to plain text mode
Bookmarks