File |
---|
aligniconbutton.h |
aligniconbutton.cpp |
- 左右 icon 对齐 Push Button
- Example
AlignIconButton *pushButton = new AlignIconButton(this); pushButton->setLeftIcon(leftIcon); pushButton->setRightIcon(rightIcon); pushButton->show();
File |
---|
notifywidget.h |
notifywidget.cpp |
notifymanager.h |
notifymanager.cpp |
- 桌面右下角弹窗
- 注意:
NotifyWidget
是一次性的,关闭窗口时将被销毁。
- Example
NotifyManager *manager = new NotifyManager(this); manager->notify(this, "Hello", "Hello World.\nHow are you today.");
File |
---|
progressbutton.h |
progressbutton.cpp |
- 进度条按钮
- 提供了类似
QProgressBar
的API - Example
ProgressButton *button = new ProgressButton(this); button->setValue(50); button->show();
File |
---|
rotatestackedwidget.h |
rotatestackedwidget.cpp |
- 带有翻转动画的 Stacked Widget
- Example
RotateStackedWidget *stackedWidget = new RotateStackedWidget(this); stackedWidget->addWidget(widget_1); stackedWidget->addWidget(widget_2); stackedWidget->setCurrentIndex(0); stackedWidget->rotate(1); // 页面翻转
File |
---|
toast.h |
toast.cpp |
-
Toast 提示窗
注意:
- 1.当
parent == nullptr
时,Toast会出现在活动桌面水平居中垂直 3/4 的地方,parent != nullptr
时则Toast会出现在父窗口水平居中垂直 3/4 的地方。 - 2.当 Toast 正在显示消息时,再次调用
Toast::toast()
将显示新消息。
- 1.当
-
Example
Toast *toast = new Toast(this); toast->toast("Hello");
File |
---|
translationstackedwidget.h |
translationstackedwidget.cpp |
- 具有平移动画的 Stacked Widget
- Example
TranslationStackedWidget *stackedWidget = new TranslationStackedWidget(this); stackedWidget->addWidget(widget_1); stackedWidget->addWidget(widget_2); stackedWidget->setCurrentIndex(0); stackedWidget->moveToIndex(1); // 页面平移