sir,
i could not success i am tired.My operting system is 32 bit. when i convert a string 10 digit number find only 0 .if i convert string 9 digit number i find 9 digit .i use all below code but i am not success.please help me
1.bool ok;
2.QString str = "9990540087";
3.quint64 no = str.toLong(&ok,10);
///////////////////////////////////
1.bool convertOK;
2.unsigned long int n = ui->lineEdit()->text().toULong(&convertOK);
3.if(!convertOK) return -1;
//////////////
1. bool ok;
2.QString str = "9990540087";
3.long no = sss.toLong(&ok,10);




Reply With Quote

Bookmarks