installProperty

fun installProperty(propertyId: <Error class: unknown class>, pspec: ParamSpec)

Installs a new property.

All properties should be installed during the class initializer. It is possible to install properties after that, but doing so is not recommend, and specifically, is not guaranteed to be thread-safe vs. use of properties on the same type on other threads.

Note that it is possible to redefine a property in a derived class, by installing a property with the same name. This can be useful at times, e.g. to change the range of allowed values or the default value.

Parameters

propertyId

the id for the new property

pspec

the #GParamSpec for the new property