Fluid 1.3.0
Material Design for QtQuick and Qml
Loading...
Searching...
No Matches
NavigationRailItem Class Reference

A destination in a Material Design 3 Expressive navigation rail. More...

Inheritance diagram for NavigationRailItem:

Detailed Description

A destination in a Material Design 3 Expressive navigation rail.

NavigationRailItem displays an icon above its label in a collapsed rail and moves the icon to the logical leading side when the rail expands. Labels are always shown when supplied. Icon-only destinations remain centered in both layouts.

The inherited text, icon, action, enabled, checked, and clicked APIs follow Qt Quick Templates. Items declared inside a NavigationRail or ModalNavigationRail are automatically made exclusive and synchronized with the rail's currentIndex.

MD.NavigationRailItem {
text: qsTr("Home")
icon.name: MD.SymbolNames.symbolHome
onClicked: stack.currentIndex = 0
}

For more information see the Material Design 3 navigation rail guidelines.

Definition at line 32 of file NavigationRailItem.qml.


The documentation for this class was generated from the following file: