Folders and files Name Name Last commit message
Last commit date
parent directory
View all files
左右 icon 对齐 Push Button
Example
AlignIconButton *pushButton = new AlignIconButton(this );
pushButton->setLeftIcon (leftIcon);
pushButton->setRightIcon (rightIcon);
pushButton->show ();
Class NotifyWidget & NotifyManager
桌面右下角弹窗
注意:
NotifyWidget
是一次性的,关闭窗口时将被销毁。
Example
NotifyManager *manager = new NotifyManager(this );
manager->notify (this , " Hello" , " Hello World.\n How are you today." );
进度条按钮
提供了类似 QProgressBar
的API
Example
ProgressButton *button = new ProgressButton(this );
button->setValue (50 );
button->show ();
Class RotateStackedWidget
带有翻转动画的 Stacked Widget
Example
RotateStackedWidget *stackedWidget = new RotateStackedWidget(this );
stackedWidget->addWidget (widget_1);
stackedWidget->addWidget (widget_2);
stackedWidget->setCurrentIndex (0 );
stackedWidget->rotate (1 ); // 页面翻转
Toast 提示窗
注意:
1.当 parent == nullptr
时,Toast会出现在活动桌面水平居中垂直 3/4 的地方,parent != nullptr
时则Toast会出现在父窗口水平居中垂直 3/4 的地方。
2.当 Toast 正在显示消息时,再次调用 Toast::toast()
将显示新消息。
Example
Toast *toast = new Toast(this );
toast->toast (" Hello" );
Class TranslationStackedWidget
具有平移动画的 Stacked Widget
Example
TranslationStackedWidget *stackedWidget = new TranslationStackedWidget(this );
stackedWidget->addWidget (widget_1);
stackedWidget->addWidget (widget_2);
stackedWidget->setCurrentIndex (0 );
stackedWidget->moveToIndex (1 ); // 页面平移
You can’t perform that action at this time.