qt beginner
-
Is there is any possible to Convert Qstring to char in Qt4
wthout using ascii and std:: (Methods)... -
Yes but you need to chose an encoding.
If you don't know what a char encoding is, this great post should help you.If you want a "don't want to know what I'm doing, I just want it done" solution then use
QString::toUtf8(). Once you have aQByteArrayyou can useQByteArray::data()orQByteArray::constData()to access the rawchararray -
thankyou @VRonin