org::kde::kirigami::Chip

Search for usage in LXR

org::kde::kirigami::Chip Class Reference
Inheritance diagram for org::kde::kirigami::Chip:

Properties

alias labelItem
 
- Properties inherited from org::kde::kirigami::templates::AbstractChip
bool closable
 

Additional Inherited Members

- Signals inherited from org::kde::kirigami::templates::AbstractChip
void removed ()
 
- Public Member Functions inherited from QtQuick.Controls.AbstractButton
 canceled ()
 
 clicked ()
 
 doubleClicked ()
 
 pressAndHold ()
 
 pressed ()
 
 released ()
 
void toggle ()
 
 toggled ()
 

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 2.19 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 39 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 48 of file Chip.qml.


The documentation for this class was generated from the following file:
bool closable
This property holds whether or not to display a close button.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 04:13:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.