mqt
20th May 2015, 06:09
In qwt 5.x, I had a code in a class derived from qwtPlot
canvas()->setFrameStyle( QFrame::NoFrame );
This is not working in qwt 6.x as cavas() function now returns a *QWidget. Is there any reason for this change? How can I get QwtPlotCanvas ?
I need Canvas for two purposes
(1) to set the frame style as none as in the above code. Is there any other way to remove border from canvas?
(2) to create a QwtPlotZoomer which accept canvas as a parent in its constructor.
canvas()->setFrameStyle( QFrame::NoFrame );
This is not working in qwt 6.x as cavas() function now returns a *QWidget. Is there any reason for this change? How can I get QwtPlotCanvas ?
I need Canvas for two purposes
(1) to set the frame style as none as in the above code. Is there any other way to remove border from canvas?
(2) to create a QwtPlotZoomer which accept canvas as a parent in its constructor.