标题:图片或文字的上下左右滚动
作者:robertkun
日期:2011-06-17 18:34
内容:
运行环境: vista + qt4.7.2 + vs2008
效果图:
实现代码:
实现接口:
void init(const QString& imagePath = "Resources/yanmei.jpg", int movingDirection = 1, int movingSpeed = 10,
const QString& displayText = "love you for ever!");
// 初始化图片
void initializeImage(const QString& imagePath);
// 设置运动方向
void setMovingDirection(int idx = 0);
// 设置运动速度
void setMovingSpeed(int speed = 10);
// 设置显示文本
void setDisplayText(const QString& text);
#1 [lknlfy 06-17 19:03]
#2 [ppdayz 06-20 10:43]
#3 [zhiming_311 06-23 16:59]
在windous上用的mingw运行不了
#4 [li_tq 06-27 17:55]
#5 [yiwuxue 09-23 09:45]
怎么下不了呢