Chip

Search for usage in LXR

Chip Class Reference

Inherits KT::Chip.

Properties

alias labelItem
 

Detailed Description

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

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: {
    [...]
    }
    }
    }
    }
Since
2.19

Definition at line 37 of file Chip.qml.

Property Documentation

◆ labelItem

QtQuick Controls Label Chip::labelItem
read

This property holds the label item; used for accessing the usual Text properties.

Definition at line 46 of file Chip.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 31 2024 17:23:19 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.