Multiple plots in one QFrame
Hi,
I have trouble finding a way to draw multiple plots (QwtPlotSpectrogram objects to be precise) in the same frame.
When I wanted to draw multiple QImage objects in the same QWidget I was able to use QPainter's drawImage method. The method takes QRect as an argument and draws an image inside of it, so one can stack one image after another (very useful if number of images is not fixed).
Is there an equivalent for QwtPlotSpectogram?
Thanks
Re: Multiple plots in one QFrame
Don't understand your question - if you want to have more than one spectrogram on the same plot then simply attach more than one spectrogram to the same plot.
Uwe
Re: Multiple plots in one QFrame
Uwe,
is it possible to have multiple spectrograms in the same plot ? if so, it's very neat ! I need to show multiple not continuous "waterfalls" (so there's blank between 'em) in the same plot and I'm not sure if this is possible...
Re: Multiple plots in one QFrame
A plot offers a coordinate system where you can attach as many items ( a spectrogram is one item ) as you want to.
If you want that your spectrograms do not overlap you have to use coordinates that do not overlap. F.e you could use 0-100 for the first and 100-200 for the second,
You can also use 110-210 if you want to have some spacing. In case you want to have the spacing in pixels ( = widgets coordinates ) you would need to adjust the distance whenever the scale maps are changing.
Uwe