Hi,

I want to set 20 decimals in a QtVariantProperty. I use this code:

Qt Code:
  1. QtVariantProperty* variantProperty = m_pVariantManager->addProperty(QVariant::Double, "test");
  2. variantProperty->setAttribute(QLatin1String("decimals"), 20);
  3. qDebug() << "decimals" << variantProperty->attributeValue(QLatin1String("decimals"));
To copy to clipboard, switch view to plain text mode 

The generated output is 'decimals 13'. Is it a limitation of QtVariantProperty? How can I set more than 13 decimals?

Best regards.