Hi,
I have a issue regarding canConvert<>() template function. Consider the following example,
Qt Code:
QVariant varConvertToDouble; varConvertToDouble.clear(); varConvertToDouble = ASD28E+01; bool bCheck = varConvertToDouble.canConvert<double>(); // Here bCheck is 'true' bool* bValid = new bool(); varConvertToDouble.toDouble(bValid); // Here *bValid is 'false'To copy to clipboard, switch view to plain text mode
As a result the 2 APIs of QVariant are contradicting to each other. Could anybody please throw light on this?
PS: I have found a similar thread http://www.qtcentre.org/threads/1921...ght=canconvert. But there is no confirming answer to this.
Thanks,
Nikhil
Bookmarks