Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.0
-
None
-
Mac
Description
I have an enum and am using Q_ENUM. I store this in a database. I bind a prepared statement wit the enum field, and it stores correctly. When I read the value back in from a select statement, it is reading the correct value, but value<T> always returns the first value of the enum, not the correct one.
For me, I am reading in QVariant(qlonglong, 2), and canConvert<T> is returning true, but, value<T>() is always returning the enum with value 0.
Attachments
Issue Links
- relates to
-
QTBUG-45438 QVariant::convert() to convert a double number to a registered enum type fails
- Closed