Hello!
I want to show a QwtPlot 2D graphic in my Qt application (and I'm using the UI interface for that). In previous software, what I did was I created a personal class with QwtPlot inherited and used the function setParent() pointing to a QWidget inside the UI interface.
But I noticed that the QGraphicsView + QGraphicsScene provides some painting functionality that simple QWidget don't provide, so I figured out, if it turned to be necessary, that probably it would be better if I connected the QwtPlot not with a QWidget, but with a QGraphicsView/QGraphicsScene so I could use not only the functions Qwt provide, but also what QGraphicsView/Scene provides.
I would like to know, given this desire, what are the advantages/disavantages of linking a QwtPlot to a QGraphicsView instead of a QWidget, what can I loose and if my previous, written thoughs are correct. Notice that I don't want only to plot, but to use many "special" functionality for the QwtPlot such as zoom and pan.
Thanks,
Momergil
Bookmarks