PDA

View Full Version : convert from qstring to const char *



deepa.selvaraj
28th November 2007, 12:04
if i am having QString buffer..i want to convert const char buffer

^NyAw^
28th November 2007, 12:09
Hi,

QString::toAscii().constData()

jacek
28th November 2007, 12:30
Please, search the forum before you ask a question.

http://www.qtcentre.org/forum/f-newbie-4/t-how-to-convert-a-qstring-to-const-char--1141.html
http://www.qtcentre.org/forum/f-qt-programming-2/t-qstring-to-char-3058.html
http://www.qtcentre.org/forum/f-qt-programming-2/t-qstring-to-char-not-converting-3211.html
http://www.qtcentre.org/forum/f-qt-programming-2/t-qstring-to-const-char-5618.html
http://www.qtcentre.org/forum/f-qt-programming-2/t-qstring-to-unsigned-char--8159.html
http://www.qtcentre.org/forum/f-qt-programming-2/t-how-to-convert-qstring-to-char--9265.html
http://www.qtcentre.org/forum/f-qt-programming-2/t-how-to-copy-qstring-content-into-array-10155.html

DeepDiver
28th November 2007, 12:33
And as usually : The solution is out there: QString.

In other words: RTFM :D