Chip QML Type
A compact element that represents an attribute, action, or filter. More...
| Import Statement: | import org.kde.kirigami |
Properties
- closable : bool
- iconMask : bool
- interactive : bool
Signals
- removed()
Detailed Description
Should be used in a group of multiple elements. e.g when displaying tags in a image viewer.
Example usage:
import org.kde.kirigami as Kirigami
Flow {
Repeater {
model: chipsModel
Kirigami.Chip {
text: model.text
icon.name: "tag-symbolic"
closable: model.closable
onClicked: {
[...]
}
onRemoved: {
[...]
}
}
}
}
Property Documentation
closable : bool |
This property holds whether or not to display a close button.
default: true
iconMask : bool |
This property holds whether the icon should be masked or not. This controls the Kirigami.Icon.isMask property.
default: false
interactive : bool |
This property holds whether the Chip should react to input or not. If set to false, click and hover events will be ignored.
default: true
Signal Documentation
removed() |
This signal is emitted when the close button has been clicked.
Note: The corresponding handler is onRemoved.