How to get a long variable from QVariant
Unsolved
General and Desktop
-
When the type of a QVariant variable is QMetaType::Long, how can I get a C++ long variable?
QVariant offers the method toLongLong, but the result is a qlonglong variable. Is it possible that toInt would be equivalent to toLong?
Then use QVariant::value<long>(). But since sizeof(long long) = sizeof(long) on all 64 bit platforms - why do you need it?