15 May 13:05
Fixed aspect ratio QwtPlotSpectrogram
From: kamran iranpour <kamran.iranpour <at> gmail.com>
Subject: Fixed aspect ratio QwtPlotSpectrogram
Newsgroups: gmane.comp.graphics.qwt.general
Date: 2008-05-15 11:09:14 GMT
Subject: Fixed aspect ratio QwtPlotSpectrogram
Newsgroups: gmane.comp.graphics.qwt.general
Date: 2008-05-15 11:09:14 GMT
Hello all, I am plotting some data in a subclass of QwtPlotSpectrogram. The spectrogram is inside a QMainWindow along with some plotting controls below it. I want the aspect ratio of the Spectrogram to stay fixed even when the user resizes the MainWindow. Currently the aspect ratio starts out wrong (the spectrogram is wider than it is tall even though the y range of the data is larger than the x range of the data), and can be changed to whatever by resizing the mainwindow. How do I set the aspect ratio to be correct and keep it that way even though the user tries to resize the Mainwindow? Thanks in advance for any answers! Andreas ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
RSS Feed