Hi,
I want to set 20 decimals in a QtVariantProperty. I use this code:
QtVariantProperty
* variantProperty
= m_pVariantManager
->addProperty
(QVariant::Double,
"test");
qDebug
() <<
"decimals" << variantProperty
->attributeValue
(QLatin1String("decimals"));
QtVariantProperty* variantProperty = m_pVariantManager->addProperty(QVariant::Double, "test");
variantProperty->setAttribute(QLatin1String("decimals"), 20);
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.
Bookmarks