QVariant reading wrong type?
General and Desktop
2
Posts
1
Posters
863
Views
1
Watching
-
wrote on 2 Jul 2013, 20:39 last edited by
Is there anyway to force some QSqlQuery values to be of a defined type?
My problem:
I have a sqlite database and one of the fields is of type VARCHAR, sometimes when I read it there are only numbers there and it may start with a zero. The problem is, Qt automatically assigns the type qlonglong to it and removes the first 0.
1/2