Thank you for the reply. Would it be possible to get a width (or size) of a canvas? canvas()->width() doesn't seem to work and I can't find a relevant member function in the document on QwtPlotCanvas class.
Thanks,
daisuke
Thank you for the reply. Would it be possible to get a width (or size) of a canvas? canvas()->width() doesn't seem to work and I can't find a relevant member function in the document on QwtPlotCanvas class.
Thanks,
daisuke
since QwtPlotCanvas) is inherited from QFrame, "int QFrame::frameWidth()" should do it...
dtakeshita (6th December 2010)
You could calculate the additional space for the left/bottom axis from the sizeHints and try to adjust the stretch factors for the first row and last column of your grid layout with it.
But in the end better forget about the grid layout and reimplement the resize event of your container widget where you do setGeometry manually for all of your plot widgets.
Uwe
dtakeshita (6th December 2010)
Bookmarks