View Full Version : Convert QString quint8;
csvivek
23rd April 2008, 13:56
is it possible to convert a QString to quint8?
if yes how?
mazurekwrc
23rd April 2008, 13:59
http://doc.trolltech.com/4.3/qstring.html#toUInt
csvivek
23rd April 2008, 14:33
i tried the following
QString s="N";
quint8 ijk;
bool ok;
ijk=s.toUInt(&ok,10);
cout<<"ijk"<<ijk<<endl;
the output was
ijk
Nithya
23rd April 2008, 14:50
Try this
ijk=s.toUtf8().at(0);
goli
1st August 2011, 08:02
i have this problem also...
how did you solve that? because the solution here does not working.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.