03-05-2013 11:55 AM - edited 03-05-2013 03:04 PM
You may need this:
The second parameter to setProperty() is a QVariant reference. By virtue of QVariant's non-explicit overloaded constructors, you can pass a double, and a QVariant will be implicitly constructed using the double value. But only if the compiler is aware of the QVariant class definition.