开发者

opengl problem with QT

I'm us开发者_C百科ing QT with opengl to make a chart in order to use it in different simulated physical experiments, but I'm facing the following problem. I can't see my chart line unless I minimized my form window and then maximized it, and I should do that all the time as long as my line chart is being drawn in order to get the full result!! What can I do, this is urgent and I need this chart working properly without minimizing and maximizing.??


It looks like you aren't doing a repaint until minimize/maximize. I suggest using a timer to get the job done. Posting your code will help!!


That's right batbrat, the missing call is updateGL, I used the following timer and it all worked, thanks.

QTimer *timer = new QTimer( this );
connect( timer, SIGNAL(timeout()), this, SLOT(updateGL()));
timer->start(6);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜