Spinner 用于向用户显示当前正在进行的及时进程。这是一项重要的用户体验 (UX) 功能,它让用户感觉系统正在持续运行以进行长期活动,例如从服务器获取数据或进行一些繁重的计算。
¥A Spinner is used to show the user a timely process is currently taking place. It is an important UX feature, which gives the user the feeling the system is continuing to work for longer term activities, like grabbing data from the server or some heavy calculations.
提示
以下 API 适用于除 QSpinner 之外的所有加载控件。使用 QSpinnerCube 制作示例。
¥The API below applies to all spinners, except for QSpinner. Making an example with QSpinnerCube.
用法(Usage)
¥Usage
在下面的示例中,将鼠标悬停在加载控件上即可查看其名称。
¥In the example below, hover over the spinners to see their names.
请注意,默认情况下,QSpinner 和所有其他旋转器会继承父级的字体大小并将其作为其大小。
¥Please note that by default, QSpinner and all other spinners inherit the font-size of the parent and applies it as its size.