QVariant reading wrong type?
General and Desktop
2
Posts
1
Posters
907
Views
1
Watching
-
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.