The easiest way to convert a QString to char* is qPrintable(const QString& str), which is a macro expanding to str.toLocal8Bit().constData() . Tags: C++ · Qt.
確定! 回上一頁