A grouped map of multiple QgsProperty objects, each referenced by a integer key value.

Properties within a collection are referenced by an integer key. This is done to avoid the cost of
string creation and comparisons which would be required by a string key. The intended use case is that
a context specific enum is cast to int and used for the key value.
Examples of such enums are :

key – integer key for property. Any existing property with the same key will be removed
and replaced by this property. The intended use case is that a context specific enum is cast to
int and used for the key value.

property – property to add. Ownership is transferred to the collection. Setting an invalid property
will remove the property from the collection.

setProperty(self, key: int, value: Any)
Convenience method, creates a QgsStaticProperty and stores it within the collection.

Parameters

key – integer key for property. Any existing property with the same key will be deleted
and replaced by this property. The intended use case is that a context specific enum is cast to
int and used for the key value.