Chip QML Type

A compact element that represents an attribute, action, or filter. More...

Import Statement: import org.kde.kirigami
Since: 2.19

Properties

Signals

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


Signal Documentation

removed()

This signal is emitted when the close button has been clicked.

Note: The corresponding handler is onRemoved.