Solved string.toAscii().data() ?????
-
I am a beginner in QT . I want to know what actually this operation do ?
QString String ;
string.toAscii().data() ?????
-
Hi and welcome to devnet,
You can find the documentation of toAscii here
And the one from .data here.That line retunes a pointer to the data of a temporary QByteArray.
Note that since you are using toAcii you're likely using Qt 4. You should consider upgrading to Qt 5.