Navegación
Pivot Pivote
Navegación por encabezados entre vistas del mismo nivel con un indicador animado.
Ejemplo
No se pudo cargar la vista previa de propiedades. Selecciona Vista previa de propiedades para reintentar.

Uso
Pivot con páginas alojadas
Conecta currentChanged para cambiar de página en un StackContentHost; las pestañas deshabilitadas siguen visibles, pero no se pueden seleccionar.
#include <FluentQt/Navigation.h>
using namespace fluent::navigation;
auto* pivot = new Pivot(this);
pivot->addItem({"All", Typography::Icons::Mail});
pivot->addItem({"Unread", Typography::Icons::Filter});
pivot->addItem({"Flagged", Typography::Icons::Flag});
pivot->addItem({"Locked", Typography::Icons::Lock, false});
pivot->addItem({"Mentions", Typography::Icons::Contact});
auto* host = new StackContentHost(this);
for (int i = 0; i < pivot->itemCount(); ++i)
host->insertPage(i, createPage(pivot->itemAt(i).header));
connect(pivot, &Pivot::currentChanged,
host, [host](int index) { host->setCurrentIndex(index, 0, true); });import fluentqt
pivot = fluentqt.Pivot()
pivot.addItem(fluentqt.PivotItem("All", fluentqt.Typography.Icons.Mail))
pivot.addItem(fluentqt.PivotItem("Unread", fluentqt.Typography.Icons.Filter))
pivot.addItem(fluentqt.PivotItem("Flagged", fluentqt.Typography.Icons.Flag))
pivot.addItem(fluentqt.PivotItem("Locked", fluentqt.Typography.Icons.Lock, False))
pivot.addItem(fluentqt.PivotItem("Mentions", fluentqt.Typography.Icons.Contact))
host = fluentqt.StackContentHost()
for index in range(pivot.itemCount()):
host.insertOwnedPage(index, create_page(pivot.itemAt(index).header))
pivot.currentChanged.connect(lambda index: host.setCurrentIndex(index, 0, True))API
DeclaraciónNo hay miembros de la API que coincidan.