Peter Mitrano
Peter Mitrano

Reputation: 2270

What's the best QT Widget to use for 2D graphics?

My requirements are:

Right now I'm extending QWidget directly and overriding paintEvent. I've also seen QGraphicsView, GLWindow, and some other ones floating around. Which one should I use? What are the pros and cons?

Upvotes: 0

Views: 426

Answers (1)

Kamajii
Kamajii

Reputation: 1878

Lots of shapes and navigation (zoom/pan) demands for the QGraphicsView approach, imho. It supports binary space partitioning to increase drawing speed. Yet I don't know of what use it might be to redraw it once every millisecond.

Upvotes: 1

Related Questions