when I try this code I still get 0 for value = 20.5. But I need value=20. How can I solve it?
Qt Code:
{ QString text; qint64 nValue = 0; //bool convertOK; bool ok; nValue = lineEdit->text().toLongLong(&ok,10); return nValue; }To copy to clipboard, switch view to plain text mode
Bookmarks