请教各位高手:
我学着书上做了一个最基础的基于QPainterPath的曲线,并利用QTimer将其定时刷新,形成动态的画面。在windows桌面下运行没有问题,但是用Qt的塞班模拟器运行时就会出现如下错误:
QWinEventNotifier: Cannot have more than 62 enabled at one time
而且这个错误不断地疯狂刷出来。弄不太懂这个错误究竟是什么意思。
定义QTimer的代码大致如下:(构造函数中)
timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(update()));
timer->start(100);
绘制简单曲线的代码大致如下:(paintEvent函数中)
QPainter painter(this);
painter.setRenderHint(QPainter::Antialiasing, true);
QPainterPath path;
path.moveTo(50, 50);
path.cubicTo(85, dy, 117, dy, 150, 50);
painter.setPen(QPen(Qt::red, 2, Qt::SolidLine, Qt::RoundCap));
dy = dy + 0.1; //通过改变dy的值来改变曲线的形状
请问各位高手有没有好的解决办法能使其在塞班模拟器运行?谢谢大家。