I have a LineEdit and want to convert the value to qint64 (long) for some calculation. But I always get a problem and the value return 0. How can I solve it?
Qt Code:
{ QString text; qint64 nValue = 0; //bool convertOK; bool ok; nValue = lineEdit->text().toLong(&ok,10); return nValue; }To copy to clipboard, switch view to plain text mode
Bookmarks