tags:

views:

103

answers:

3

Hi, I want to show a car's path in a window in real time, how to do that, and what classes I have to use. Is there anything like drawing area, in Qt.

Any Help will be appreciated.

A: 

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

Dirk Eddelbuettel
Qwt has absolutely nothing that would help here...
rubenvb
I have written several real-time data plotters with it, and the new code is maybe 200 lines. Works for me, YMMV.
Dirk Eddelbuettel
The question (as I read it) is not about a plot (I could be mistaken), it is about a car's path, which I interpreted as a physical line being drawn behind a (2D) car moving across the scene.
rubenvb
@rubenvb Ya, you got it. I want to put pixel by pixel in a map(or any image type like jpeg,png,etc), or an empty map or in a newly created image.
prabhakaran
+1  A: 

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.

rubenvb
A: 

See this link. This is almost the same question.

Narek