Navigation
Pivot Pivot-Navigation
Kopfzeilenbasierte Navigation zwischen gleichrangigen Ansichten mit animiertem Indikator.
Beispiel
Die Eigenschaftsvorschau konnte nicht geladen werden. Wählen Sie „Eigenschaftsvorschau“, um es erneut zu versuchen.

Verwendung
Pivot mit gehosteten Seiten
currentChanged verbinden, um Seiten in einem StackContentHost zu wechseln; deaktivierte Tabs bleiben sichtbar, können aber nicht ausgewählt werden.
#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
DeklarationKeine passenden API-Elemente.