QtVariantProperty and attributeValue(QLatin1String("decimals")
Hi,
I want to set 20 decimals in a QtVariantProperty. I use this code:
Code:
QtVariantProperty
* variantProperty
= m_pVariantManager
->addProperty
(QVariant::Double,
"test");
qDebug
() <<
"decimals" << variantProperty
->attributeValue
(QLatin1String("decimals"));
The generated output is 'decimals 13'. Is it a limitation of QtVariantProperty? How can I set more than 13 decimals?
Best regards.
Re: QtVariantProperty and attributeValue(QLatin1String("decimals")
Re: QtVariantProperty and attributeValue(QLatin1String("decimals")
More likely a limitation of the double type. Which of couse propagates to the attribute value.