Logo FluentUI

ItemDelegate QML Type

A styled item delegate for list and table views. More...

Import Statement: import FluentUI 1.0

Properties

Detailed Description

ItemDelegate is a QML component that extends QtQuick.Controls.ItemDelegate with Fluent Design theme support. It provides a clickable item with text and optional icon, styled with the current theme's colors and typography, suitable for use in ListView, TableView, and other item-based views.

Usage Example

 import QtQuick
 import FluentUI

 ListView {
     model: ["Item 1", "Item 2", "Item 3"]
     delegate: ItemDelegate {
         text: modelData
         width: parent.width
     }
 }

See also QtQuick.Controls.ItemDelegate.

Property Documentation

enabled : bool

Whether the delegate is enabled. This property is inherited from QtQuick.Controls.ItemDelegate.

font : font

The font used for the delegate text. This property is inherited from QtQuick.Controls.ItemDelegate.

highlighted : bool

Whether the delegate is rendered with highlighted styling. The default value is false.

icon : var

The icon displayed on the delegate, specified as an object with name, source, width, height, and color properties.

text : string

The text displayed on the delegate. This property is inherited from QtQuick.Controls.ItemDelegate.