QwtPlot inside QScrollArea
I need to place a QwtPlot in a QScrollArea (I use it to address some magnification/panning issues).
I do this as follow:
Code:
sa->setMinimumSize(700, 500);
sa->sizeHint();
sa->setVerticalScrollBarPolicy ( Qt::ScrollBarAlwaysOff );
sa->setHorizontalScrollBarPolicy ( Qt::ScrollBarAlwaysOn );
plot->setMinimumSize(sa->size());
plot->sizeHint();
sa->setWidget(plot);
In this way the QwtPlot is only partially visible.
I want to set QwtPlot size to be fully visible inside QScrollArea.
How can I set correctly the QwtPlot size?
thanks
Re: QwtPlot inside QScrollArea
mastupristi,
l would like to do the same thing than you ... have you solved the issue ??
regards,
Michael
Re: QwtPlot inside QScrollArea
actually l would like to complete my question...
l would like to add several QWTplot in a QSCrollArea, l would add them from a Palette using Drag and Drop event.
I can manage the Drag-Drop event to add simple rectangle, but l don't know to add QWTPlot elements.
any hints ??
thanks,
Michael
Re: QwtPlot inside QScrollArea
hi, mastupristi, i am on the same issue as you.
i think core of the issue is on how to set the proportion of the qwidget size and the qwtplot x-scale.
I am trying to add qwtplot(chart column) in several QWidget objects in one qstackedwidget container.
Any progress please let me know.
Thanks a lot.