|
Fluid 1.3.0
Material Design for QtQuick and Qml
|
A persistent Material Design 3 Expressive navigation rail. More...
A persistent Material Design 3 Expressive navigation rail.
NavigationRail provides access to primary application destinations on medium, expanded, large, and extra-large windows. Applications choose when to show it with Breakpoints; the control does not hide or expand itself in response to window-size changes.
The rail is collapsed by default. Collapsed destinations place their icons above their labels in a 96 dp rail. Expanded destinations use a logical leading icon in a content-sized rail constrained between 220 and 360 dp. A header remains at the top while destinations can be arranged at the top, center, or bottom. System safe-area margins are applied on the vertical and logical-start edges.
NavigationRail inherits its destination collection API from QtQuick.Templates.Container. Declare NavigationRailItem objects as its default content, use count and itemAt() to inspect them, and use currentIndex to control their exclusive checked state. The initial current index is zero; assigning minus one clears selection.
Collapsed rails should normally contain three to seven destinations and are intended for windows at least 600 dp wide.
For more information see the Material Design 3 navigation rail guidelines.
Definition at line 59 of file NavigationRail.qml.