View Full Version : How to convert a QString to const char *?
SkripT
9th March 2006, 11:33
Hi all, QImage::save() needs a const char* with the format string but I have this format in a QString, so I need to do the conversion. I've searched the class QString but I havent' found any method to do it. Anybody knows how to do it?
Thanks.
wysota
9th March 2006, 11:39
toLocal8Bit().data()
sumsin
10th March 2006, 11:56
public members of QString class in Qt-3.3.4
const char * ascii () const
const char * latin1 () const
Powered by vBulletin® Version 4.2.5 Copyright © 2023 vBulletin Solutions Inc. All rights reserved.