ElementHint QML Type
A QtQuick representation of a hint on an Element. More...
| Import Statement: | import org.kde.union.impl |
Properties
Detailed Description
QuickElement::hints needs some way of extending the style-declared hints with application overrides. The only way of doing that with public QtQuick API is by using a list property. This type is used to represent hints of QuickElement.
QuickElement will use its list of ElementHint instances to build its internal list of hints, using the name property as the hint name. The when property determines whether a hint gets added. Duplicate elements in the list of ElementHints can be used to override previously declared hints.
See also QuickElement and ElementAttribute.
Property Documentation
name : string
The name of the hint to set or remove.
when : bool
If true, set the hint on the element. If false, remove the hint.
The default is true.