Results 1 to 4 of 4

Thread: Spectrogram zooming change

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Spectrogram zooming change

    Quote Originally Posted by Uwe View Post
    The Qwt examples are intended to show what - and how things - can be done. In this version the spectrogram example shows a different mode of the zoomer/picker class. That's all.

    Uwe
    I am not sure I made myself clear. So I will try again. I compiled the sample program under Fedora 12. Moved it to Fedora 14 and ran it. It runs different as I stated in my original message. I want it to run exactly like it did in Fedora 12. What do I need to do to have the example run the same on Fedora 12 and 14? Something must have changed (maybe a default) that now changes the mode of operation.

    Jim

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

    Default Re: Spectrogram zooming change

    Quote Originally Posted by azcoder View Post
    Something must have changed (maybe a default) that now changes the mode of operation.
    Ah right - there was a bug in Qwt 5.2.0 ( and many earlier versions ) where the zoomer was initialized by ( QwtPicker::RectSelection & QwtPicker::ClickSelection ) instead of ( QwtPicker::RectSelection | QwtPicker::ClickSelection ). When fixing this bug I seem to have missed, that this breaks the compatibility of applications, that doesn't configure the zoomer.

    If you want to have a selection model like in the bode example you have to add this line:

    Qt Code:
    1. zoomer->setSelectionFlags(QwtPicker::RectSelection | QwtPicker::DragSelection);
    To copy to clipboard, switch view to plain text mode 

    In Qwt 6 "QwtPicker::RectSelection | QwtPicker::DragSelection" is the default setting of the zoomer.

    Uwe

  3. The following user says thank you to Uwe for this useful post:

    azcoder (5th November 2010)

Similar Threads

  1. Replies: 7
    Last Post: 18th November 2016, 11:48
  2. Resolution Spectrogram
    By edney in forum Qwt
    Replies: 3
    Last Post: 13th April 2010, 07:44
  3. get min and max value from spectrogram
    By rambo83 in forum Qwt
    Replies: 1
    Last Post: 2nd December 2009, 14:25
  4. qwt spectrogram example
    By rambo83 in forum Qwt
    Replies: 2
    Last Post: 17th November 2009, 21:13
  5. Replies: 0
    Last Post: 3rd February 2009, 13:16

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.