首页| 论坛| 消息

标题:简单的字幕滚动效果
作者:浪漫天使
日期:2009-05-24 11:12
内容:

简单的字幕滚动效果
有3个接口,一个是改变方向
一个是改变速度
一个是改变字符
改变字符,如果有汉字,要注意字符编码
如,QString teststr = QString::formLocal8Bit("我的汉字");
再用 changeContent( teststr);
测试环境 : linux + qt3 + g++


#1 [lyhuidou12 05-28 16:47]
文件损坏啊
#2 [haulm 05-31 23:11]
错误一大堆
#3 [haulm 05-31 23:12]
mypaint.cpp:29: 错误:‘class QString’没有名为‘setLength’的成员
mypaint.cpp: At global scope:
mypaint.cpp:35: 警告:未使用的参数‘painter’
mypaint.cpp: In member function ‘virtual void Mypainter::paintEvent(QPaintEvent*)’:
mypaint.cpp:50: 错误:invalid use of incomplete type ‘struct QPaintEvent’
/usr/lib/qt4/include/QtGui/qwidget.h:80: 错误:forward declaration of ‘struct QPaintEvent’
mypaint.cpp:53: 错误:‘class QPixmap’没有名为‘resize’的成员
mypaint.cpp:56: 错误:对‘QPainter::QPainter(QPixmap*, Mypainter* const)’的调用没有匹配的函数
/usr/lib/qt4/include/QtGui/qpainter.h:497: 附注:备选为: QPainter::QPainter(const QPainter&)
/usr/lib/qt4/include/QtGui/qpainter.h:99: 附注: QPainter::QPainter(QPaintDevice*)
/usr/lib/qt4/include/QtGui/qpainter.h:98: 附注: QPainter::QPainter()
mypaint.cpp:57: 错误:‘red’在此作用域中尚未声明
mypaint.cpp:66: 错误:invalid use of incomplete type ‘struct QPaintEvent’
/usr/lib/qt4/include/QtGui/qwidget.h:80: 错误:forward declaration of ‘struct QPaintEvent’
mypaint.cpp:66: 错误:‘bitBlt’在此作用域中尚未声明
mypaint.cpp: In member function ‘void Mypainter::changeRate(int)’:
mypaint.cpp:85: 错误:‘class QTimer’没有名为‘changeInterval’的成员
#4 [浪漫天使 06-01 08:20]
我好像说了是qt3的环境把.你却用了qt4编译.等下我弄过qt4的版本.
#5 [浪漫天使 06-01 08:56]
qt4版本的
测试环境:windows + devcpp+ qt 4.4.1

<< 1 2 3 >> (1/6)

回复 发表
主题 版块