QPagination 组件可用于任何需要分页系统的情况。它为用户提供了一个简单的 UI,用于在项目或页面之间移动。
¥The QPagination component is available for whenever a pagination system is required. It offers the user a simple UI for moving between items or pages.
QPagination 有两种运行模式:仅使用按钮或使用输入框。后者允许用户通过点击/轻触输入框,输入页码,然后按 Enter 键转到特定页面。如果新页码在有效限制范围内,模型将相应更改。
¥There are two modes in which QPagination operates: with buttons only or with an inputbox. The latter allows the user to go to a specific page by clicking/tapping on the inputbox, typing the page number then hitting Enter key. If the new page number is within valid limits, the model will be changed accordingly.
用法(Usage)
¥Usage
设计(Design)
¥Design
以下是一些示例,但并非详尽无遗:
¥The following are a few examples, but not an exhaustive list:
自定义图标(Custom icons)
¥Custom icons
带输入框(With input)
¥With input
最大页面数显示(Max pages shown)
¥Max pages shown
处理边界(Handling boundary)
¥Handling boundary