开发者

Qt - Real time drawing

I want to show a car's path in a window in real time, how to do that, and what classe开发者_如何学Cs I have to use. Is there anything like drawing area, in Qt.

Any Help will be appreciated.


You'll need to read up on QGraphicsview. There are several helpful examples that show every bit of what functionality is present here. The implementation itself... I guess it's just a bunch of QLines on a QGraphicsScene. The realtime part is handled by calling repaint or paintevent or whatever it's called periodically, or setting up a complex animation.


The Qwt library on top of Qt is pretty good for this.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜