Results 1 to 3 of 3

Thread: Legend items disappear sometimes (a bug in Qwt?)

  1. #1
    Join Date
    Jul 2009
    Posts
    12
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Legend items disappear sometimes (a bug in Qwt?)

    Hello,

    I'm using Qwt6 SVN (latest) and I'm experiencing a strange bug - when removing / re-adding curves to a plot, the legend items (corresponding to curves) disappear sometimes.
    The problem seems timing-dependent, since it's easily reproducible when running on a fast machine, but hard (or almost impossible) to reproduce when running in valgrind. It's harder to reproduce with large plots, but still happens pretty often (and randomly).

    I modified the "bode" example to remove/re-add the curves whenever a "Replot" button (replacing the Print button) is pressed. On my computer only the blue curve's legend item remains after clicking it (unless I'm running in valgrind).

    I'm attaching the modified example.

    Thanks in advance!
    Attached Files Attached Files

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

    Default Re: Legend items disappear sometimes (a bug in Qwt?)

    Fixed in SVN,

    Uwe

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

    torrentss (2nd September 2010)

  4. #3
    Join Date
    Jul 2009
    Posts
    12
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Legend items disappear sometimes (a bug in Qwt?)

    Updated to the latest version and can't reproduce it anymore. Thanks a lot!

Similar Threads

  1. Spacing around legend items
    By FilipeMaia in forum Qwt
    Replies: 5
    Last Post: 13th August 2015, 09:15
  2. Replies: 1
    Last Post: 15th May 2010, 18:22
  3. items in view would disappear on scrolling
    By sepehr in forum Qt Programming
    Replies: 4
    Last Post: 21st March 2009, 07:20
  4. Remove Legend items, move legends
    By giusepped in forum Qwt
    Replies: 0
    Last Post: 11th February 2009, 02:35
  5. QTableWidget: set items disappear after new insertion
    By Raccoon29 in forum Qt Programming
    Replies: 6
    Last Post: 16th March 2008, 18:28

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.