Skip to main content

QCustomPagination

QCustomPagination

Page navigation with prev/next and ellipsis.

[<] [1] ... [4] [5] [6] ... [20] [>] - first/last always shown, a window around the current page, ellipsis for gaps. Tokenized. Emits pageChanged.

At a glance

TierFree (GPLv3)
Importfrom Custom_Widgets.QCustomPagination import QCustomPagination
Qt DesignerYes — drag it from the palette

Quick start

from Custom_Widgets.QCustomPagination import QCustomPagination

widget = QCustomPagination()

Dark theme

Colours come from the design tokens, so the widget follows the app theme with no extra work.

QCustomPagination in dark theme

Signals

Signal
pageChanged(int)

Methods

MethodDescription
currentPage()Current page.
pageChanged(...)Page changed.
pageCount()Page count.
setCurrentPage(page)Set the current page.
setPageCount(count)Set the page count.

Theming

Colours come from the design tokens, so they follow the active theme. Roles used: surface, on-surface, surface-muted, outline, accent, on-primary.

See Design tokens.

QCustomBreadcrumbs · QCustomCommandPalette · QCustomDrawer · QCustomHamburgerMenu · QCustomHeaderNav · QCustomMenu · QCustomSidebar · QCustomSidebarButton