prabhakaran
prabhakaran

Reputation: 5264

Qt - Real time drawing

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.

Upvotes: 1

Views: 2155

Answers (2)

rubenvb
rubenvb

Reputation: 76519

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.

Upvotes: 1

Dirk is no longer here
Dirk is no longer here

Reputation: 368181

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

Upvotes: 0

Related Questions