|
DtkWidget
DTK Widget module
|
这个类提供了跑马灯效果,可以让控件的内容滚动起来. 更多...
Public 类型 | |
| enum | Direction { LeftToRight , RightToLeft , TopToBottom , BottomToTop } |
信号 | |
| void | finished () |
| void | stateChanged () |
Public 成员函数 | |
| DTickEffect (QWidget *widget, QWidget *parent=0) | |
| DTickEffect的构造函数 | |
| void | play () |
| 开始播放 | |
| void | stop () |
| 停止播放 | |
| void | pause () |
| 暂停播放 | |
| void | resume () |
| 恢复播放 | |
| void | setDirection (Direction direction) |
| 设置滚动的方向 | |
| void | setFixedPixelMove (const int pixel) |
Protected 成员函数 | |
| void | draw (QPainter *painter) Q_DECL_OVERRIDE |
| bool | eventFilter (QObject *watched, QEvent *event) Q_DECL_OVERRIDE |
这个类提供了跑马灯效果,可以让控件的内容滚动起来.
\inmodule dtkwidget
|
explicit |
DTickEffect的构造函数
widget 设置动画绑定的对象 parent
|
signal |
调用stop方法以后会发出该信号
| void Dtk::Widget::DTickEffect::setDirection | ( | DTickEffect::Direction | direction | ) |
设置滚动的方向
direction
|
signal |
当方向发生改变时会发出该信号