Results 1 to 2 of 2

Thread: Z value on the QwtPlot spectrogram example

  1. #1
    Join Date
    Jul 2014
    Posts
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Z value on the QwtPlot spectrogram example

    In the example as you move your mouse around the screen it shows you the X and Y values through the modified QwtPlotZoomer class. Is there a way to get the Z value as well? I have setup an example using QwtPlotSpectrogram with QwtRasterData and it works well but I am a little stumped as to how to get the Z value as well as the X and Y as I move my mouse around.

    Thanks for your time guys

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

    Default Re: Z value on the QwtPlot spectrogram example

    In QwtPlotPicker::trackerTextF() you have the x and the y value ( in plot coordinates ) of the mouse position. All you need to do is to call QwtRasterData::z() with them and to build and return the string from the x,y,z values you want to be displayed.

    Uwe

Similar Threads

  1. Replies: 1
    Last Post: 22nd May 2014, 07:45
  2. Replies: 9
    Last Post: 25th October 2012, 19:55
  3. How to use QWT spectrogram in QML
    By jg in forum Qt Quick
    Replies: 1
    Last Post: 20th May 2011, 09:07
  4. get min and max value from spectrogram
    By rambo83 in forum Qwt
    Replies: 1
    Last Post: 2nd December 2009, 14:25
  5. Replies: 6
    Last Post: 14th May 2009, 12:02

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.