내비게이션
NavigationView 내비게이션 뷰
최상위 탐색을 위한 반응형 왼쪽 창과 콘텐츠 영역을 제공합니다.
예제
속성 미리 보기를 불러오지 못했습니다. 속성 미리 보기를 다시 선택해 재시도하세요.

사용법
크롬 슬롯
헤더, 메인, 푸터 크롬은 호출자가 소유하는 위젯이며, NavigationView는 셸 레이아웃 위치만 할당합니다.
#include <FluentQt/Navigation.h>
using namespace fluent::navigation;
auto* navView = new NavigationView(this);
navView->setMinimumWidth(440);
navView->setMaximumWidth(620);
navView->setFixedHeight(340);
navView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
navView->setDisplayMode(NavigationView::DisplayMode::Left);
navView->setExpandedPaneWidth(180);
navView->setHeaderChromeWidget(headerSection);
navView->setMainChromeWidget(mainSection);
navView->setFooterChromeWidget(footerSection);
populateNavigationPages(navView->contentHost());
auto routeToPage = [host = navView->contentHost()](int pageIndex) {
const int direction = pageIndex >= host->currentIndex() ? 1 : -1;
host->setCurrentIndex(pageIndex, direction, true);
};
headerSection->onActivated = routeToPage;
mainSection->onActivated = routeToPage;
footerSection->onActivated = routeToPage;import fluentqt
from PySide6.QtWidgets import QSizePolicy
nav = fluentqt.NavigationView()
nav.setMinimumWidth(440)
nav.setMaximumWidth(620)
nav.setFixedHeight(340)
nav.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed)
nav.setDisplayMode(fluentqt.NavigationView.DisplayMode.Left)
nav.setExpandedPaneWidth(180)
nav.setHeaderChromeWidget(header_section)
nav.setMainChromeWidget(main_section)
nav.setFooterChromeWidget(footer_section)
populate_navigation_pages(nav.contentHost())
def route_to_page(page_index):
host = nav.contentHost()
direction = 1 if page_index >= host.currentIndex() else -1
host.setCurrentIndex(page_index, direction, True)
header_section.on_activated = route_to_page
main_section.on_activated = route_to_page
footer_section.on_activated = route_to_pageAPI
선언 보기일치하는 API 멤버가 없습니다.