//!make a Qstring
QString imageSavePath;
QString ImageName = "aImg";
imageSavePath += QDir::currentPath();
imageSavePath += "/images/";
imageSavePath += ImageName;
//!make a Qstring
//!convert to const char*
QByteArray aByteArray = imageSavePath.toLocal8Bit();
const char * c_path = aByteArray.data();
//!convert to const char*
QString 转 const char*(记录)
最新推荐文章于 2024-06-28 15:06:57 发布