同步操作将从 尘年灬往事/QtWaitingSpinner 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
QtWaitingSpinner is a highly configurable, custom Qt widget for showing "waiting" or "loading" spinner icons in Qt applications, e.g. the spinners below are all QtWaitingSpinner widgets differing only in their configuration:
###Configuration
The following properties can all be controlled directly through their corresponding setters:
###Usage
Despite being highly configurable, QtWaitingSpinner is extremely easy to use and, to make things even easier, the "QtWaitingSpinnerTest" application can assist you in determining the exact shape, size and colour you'd like your spinner to have.
For example, the embedded spinner in the QtWaitingSpinnerTest screenshot below can be created as follows:
QtWaitingSpinner* spinner = new QtWaitingSpinner(this);
spinner->setRoundness(70.0);
spinner->setMinimumTrailOpacity(15.0);
spinner->setTrailFadePercentage(70.0);
spinner->setNumberOfLines(12);
spinner->setLineLength(10);
spinner->setLineWidth(5);
spinner->setInnerRadius(10);
spinner->setRevolutionsPerSecond(1);
spinner->setColor(QColor(81, 4, 71));
spinner->start(); // gets the show on the road!
As an alternative example, the code below will create a spinner that (1) blocks all user input to the main application for as long as the spinner is active, (2) automatically centres itself on its parent widget every time "start" is called and (3) makes use of the default shape, size and colour settings.
QtWaitingSpinner* spinner = new QtWaitingSpinner(this, Qt::ApplicationModal, true);
spinner->start(); // starts spinning
Please use use this link for feedback, requests or issues.
Enjoy!
###qt-pods
QtWaitingSpinner is available as a pod within qt-pods. See here for reference: https://github.com/cybercatalyst/qt-pods
###Thanks
QtWaitingSpinner was inspired by the spin.js project.
There is also QtWaitingSpinner for Python! Thanks to z3ntu for porting it.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。