Results 1 to 4 of 4

Thread: Overlaying on qwt: spectrogram

  1. #1
    Join Date
    Apr 2011
    Posts
    58
    Thanks
    1

    Default Overlaying on qwt: spectrogram

    Hi.

    I'm referring to the spectrogram example given in QWT.
    I'm trying to create some custom shapes (e.g. circle and star outline) overlaying on top of the spectrogram. Normally, in QT, we will pass the QPainter with a QPen to draw in the canvas. But in QWT, how do we do it? Particularly in this spectrogram.

    Many thanks!

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,311
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Overlaying on qwt: spectrogram

    Maybe spend at least five minutes on trying to understand the design of the QwtPlot framework - then you will be able to answer yourself,

    Uwe

  3. #3
    Join Date
    Apr 2011
    Posts
    58
    Thanks
    1

    Default Re: Overlaying on qwt: spectrogram

    Where would be the right place to know more about the design of the QwtPlot framework?
    Is there any particular example I could follow?

  4. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,311
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Overlaying on qwt: spectrogram

    A plot widget is populated with plot items, that are painted in z order. A plot item is something that paints to the plot canvas. This is very similar to the graphics view framework.

    After checking the API of the base class of all plot items ( QwtPlotItem ) and what plot items are available you should have an idea how to proceed.

    Uwe

Similar Threads

  1. Overlaying Widgets on top of VideoWidget
    By opsimath in forum Qt Programming
    Replies: 2
    Last Post: 9th June 2011, 13:29
  2. How to use QWT spectrogram in QML
    By jg in forum Qt Quick
    Replies: 1
    Last Post: 20th May 2011, 09:07
  3. Replies: 5
    Last Post: 22nd October 2010, 09:29
  4. get min and max value from spectrogram
    By rambo83 in forum Qwt
    Replies: 1
    Last Post: 2nd December 2009, 14:25
  5. Replies: 0
    Last Post: 25th May 2009, 10:00

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.