string.toAscii().data() ?????
Solved
India
-
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.