qt_developer
12th September 2013, 14:21
Hi,
I want to set 20 decimals in a QtVariantProperty. I use this code:
QtVariantProperty* variantProperty = m_pVariantManager->addProperty(QVariant::Double, "test");
variantProperty->setAttribute(QLatin1String("decimals"), 20);
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.
I want to set 20 decimals in a QtVariantProperty. I use this code:
QtVariantProperty* variantProperty = m_pVariantManager->addProperty(QVariant::Double, "test");
variantProperty->setAttribute(QLatin1String("decimals"), 20);
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.